-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (33 loc) · 1.01 KB
/
ci.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
name: Build and Test
on:
workflow_dispatch:
push:
branches: ['main']
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ 'main' ]
paths-ignore:
- '**.md'
jobs:
ci-build:
strategy:
matrix:
# TODO: Use full matrices
# android_api_level: ['21','25','30','34']
# java_version: ['11', '17']
android_api_level: ['25']
java_version: ['17']
runs-on: ubuntu-latest
steps:
# This enables hardware acceleration on large linux runners
- name: Enable KVM group perms
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
- uses: actions/checkout@v4
- uses: ./.github/actions/ci
with:
android_api_level: ${{ matrix.android_api_level }}
java_version: ${{ matrix.java_version }}