Workflow file for this run
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
name: "Shared Steps" | |
runs: | |
using: "composite" | |
steps: | |
- uses: gradle/wrapper-validation-action@v2 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: corretto | |
- name: Setup Gradle Cache | |
uses: gradle/gradle-build-action@v3 | |
- name: Enable KVM group perms | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Restore Native Libs | |
id: restore-nativeLibs | |
uses: actions/cache@v4 | |
with: | |
path: | | |
nativeLibs/djvu | |
nativeLibs/mupdf | |
nativeLibs/mupdfModule/build | |
nativeLibs/mupdfModule/.cxx | |
nativeLibs/djvuModule/build | |
nativeLibs/djvuModule/.cxx | |
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' |