-
-
Notifications
You must be signed in to change notification settings - Fork 13
60 lines (50 loc) · 1.32 KB
/
Copy pathci.yml
File metadata and controls
60 lines (50 loc) · 1.32 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:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: jetbrains
java-version: "21"
cache: gradle
- name: Install Android SDK packages
run: |
export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"
yes | sdkmanager --licenses >/dev/null
sdkmanager \
"platforms;android-37.0" \
"build-tools;37.0.0" \
"ndk;27.0.12077973" \
"cmake;3.22.1"
- name: Run build and checks
run: ./gradlew assembleDebug check --no-daemon
- name: Upload APK
if: always()
uses: actions/upload-artifact@v7
with:
name: apk
path: app/build/outputs/apk
if-no-files-found: ignore
- name: Upload reports
if: always()
uses: actions/upload-artifact@v7
with:
name: reports
path: app/build/reports
if-no-files-found: ignore