-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (52 loc) · 1.57 KB
/
Copy pathci.yml
File metadata and controls
60 lines (52 loc) · 1.57 KB
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
57
58
59
60
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- name: setup Java 17
uses: actions/setup-java@v5
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
- name: Build the project
run: ./gradlew build
connectedCheck:
runs-on: macos-15-intel
strategy:
fail-fast: false
matrix:
api-level: [24, 29, 31, 34, 36]
target: [default]
steps:
- name: checkout
uses: actions/checkout@v6
- name: setup Java 17
uses: actions/setup-java@v5
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
- name: run connectedCheck
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
ndk: 29.0.14206865
cmake: 3.22.1
target: ${{ matrix.target }}
arch: x86_64
profile: Nexus 6
cores: 4
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedCheck --continue
- name: Archive the test reports
uses: actions/upload-artifact@v7
if: failure()
with:
name: androidTest-results-${{ matrix.api-level }}-${{ matrix.target }}
path: |
**/build/outputs/androidTest-results/**
**/build/reports/androidTests/**
if-no-files-found: warn