-
Notifications
You must be signed in to change notification settings - Fork 54
39 lines (33 loc) · 1.19 KB
/
shared_steps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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'