Repository navigation
64 lines (63 loc) · 2.39 KB
/
Copy pathandroid.yml
File metadata and controls
64 lines (63 loc) · 2.39 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
61
62
63
name: Android internal builds
on:
push:
branches: [android/playstore-prep, main]
pull_request:
paths: ['android/**', '.github/workflows/android.yml']
workflow_dispatch:
permissions:
contents: read
concurrency:
group: android-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a
with:
gradle-version: '8.13'
- name: Install locked web dependencies
run: npm ci
- name: Check listing and release gates
run: node android/release-check.mjs
- name: Prepare pinned web assets
run: node android/prepare.mjs
- name: Compile and verify Android
run: ./android/gradlew -p android --no-daemon assembleDebug bundleRelease testDebugUnitTest lintRelease
- name: Enable emulator acceleration
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: Android emulator acceptance
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d
with:
api-level: 35
arch: x86_64
target: google_apis
profile: pixel_6
disable-animations: true
emulator-options: -no-window -gpu swiftshader -feature -Vulkan -memory 2048 -cores 2 -no-snapshot -noaudio -no-boot-anim -camera-back none
script: bash android/emulator-check.sh
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: android-internal-${{ github.sha }}
path: |
android/app/build/outputs/apk/debug/*.apk
android/app/build/outputs/bundle/release/*.aab
android/app/build/reports/
android/app/build/test-results/
android/asset-manifest.json
android/emulator-evidence/
if-no-files-found: error
retention-days: 30