-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (47 loc) · 1.45 KB
/
pr.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test pull request
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
build:
strategy:
matrix:
os: [ macos-13, ubuntu-latest ]
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Enable KVM group permissions
if: matrix.os == 'ubuntu-latest'
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: Configure Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Configure Gradle
uses: gradle/actions/setup-gradle@v4
- name: Cache Konan
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Build and test
if: matrix.os == 'macos-13'
run: ./gradlew build
- name: Run Android emulator tests
if: matrix.os == 'ubuntu-latest'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 24
arch: x86_64
script: ./gradlew connectedCheck