-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da2abf5
commit 382008e
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,28 @@ jobs: | |
java-version: 11 | ||
distribution: corretto | ||
|
||
- name: Setup Gradle Cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Restore Native Libs | ||
id: restore-nativeLibs | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
nativeLibs/djvu | ||
nativeLibs/mupdf | ||
nativeLibs/mupdfModule/build | ||
nativeLibs/mupdfModule/.cxx | ||
nativeLibs/djvuModule/build | ||
key: ${{ runner.os }}-native-libs-${{ hashFiles('thirdparty_build.gradle') }} | ||
|
||
- name: Prepare thirdparty | ||
run: bash ./gradlew -b thirdparty_build.gradle downloadAndPatchDjvu downloadAndMakeMupdf | ||
if: steps.restore-nativeLibs.outputs.cache-hit != 'true' | ||
|
||
- name: Build debug APK | ||
run: bash ./gradlew assembleDebug --stacktrace -Porion.CIBuild=true | ||
|
||
- name: Read value from Properties-file | ||
id: read_version_property | ||
uses: christian-draeger/[email protected] | ||
|
@@ -75,8 +93,24 @@ jobs: | |
java-version: 11 | ||
distribution: corretto | ||
|
||
- name: Setup Gradle Cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Restore Native Libs 2 | ||
id: restore-nativeLibs | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
nativeLibs/djvu | ||
nativeLibs/mupdf | ||
nativeLibs/mupdfModule/build | ||
nativeLibs/mupdfModule/.cxx | ||
nativeLibs/djvuModule/build | ||
key: ${{ runner.os }}-native-libs-${{ hashFiles('thirdparty_build.gradle') }} | ||
|
||
- name: Prepare thirdparty | ||
run: bash ./gradlew -b thirdparty_build.gradle downloadAndPatchDjvu downloadAndMakeMupdf | ||
if: steps.restore-nativeLibs.outputs.cache-hit != 'true' | ||
|
||
- name: run tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
|