Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer committed Oct 26, 2023
1 parent da2abf5 commit 5f7b20d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,34 @@ jobs:

- name: Prepare thirdparty
run: bash ./gradlew -b thirdparty_build.gradle downloadAndPatchDjvu downloadAndMakeMupdf

- name: Restore Native Libs
id: restore-nativeLibs
uses: actions/cache@v3
with:
path: |
orion-viewer/nativeLibs/djvu
orion-viewer/nativeLibs/mupdf
key: ${{ runner.os }}-native-${{ hashFiles('thirdparty_build.gradle') }}
restore-keys: |
${{ runner.OS }}-native-
- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace -Porion.CIBuild=true
if: steps.restore-nativeLibs.outputs.cache-hit != 'true'

# - name: Save Native Libs
# id: save-nativeLibs
# uses: actions/cache/store@v3
# if: steps.restore-nativeLibs.outputs.cache-hit != 'true'
# with:
# path: |
# orion-viewer/nativeLibs/djvu
# orion-viewer/nativeLibs/mupdf
# key: ${{ runner.os }}-native-${{ hashFiles('thirdparty_build.gradle') }}
# restore-keys: |
# ${{ runner.OS }}-native-

- name: Read value from Properties-file
id: read_version_property
uses: christian-draeger/[email protected]
Expand Down Expand Up @@ -75,6 +101,18 @@ jobs:
java-version: 11
distribution: corretto

- name: Restore Native Libs
id: restore-nativeLibs
uses: actions/cache@v3
with:
path: |
orion-viewer/nativeLibs/djvu
orion-viewer/nativeLibs/mupdf
key: ${{ runner.os }}-native-${{ hashFiles('thirdparty_build.gradle') }}
restore-keys: |
${{ runner.OS }}-native-
- name: Prepare thirdparty
run: bash ./gradlew -b thirdparty_build.gradle downloadAndPatchDjvu downloadAndMakeMupdf

Expand Down

0 comments on commit 5f7b20d

Please sign in to comment.