-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (56 loc) · 1.84 KB
/
android-build.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
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
64
65
66
67
68
name: Android Build & Render Test
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Install Android build tools and platform
run: |
sdkmanager --install "build-tools;33.0.0" "platforms;android-33" "ndk;25.1.8937393"
- name: Install dependencies
run: |
npm install -g yarn
yarn install
- name: Install Maestro
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
echo "$HOME/.maestro/bin" >> $GITHUB_PATH
- name: Install Android build tools and platform
run: |
sdkmanager --install "build-tools;34.0.0" "platforms;android-34" "ndk;25.1.8937393" "system-images;android-34;google_apis;x86_64"
sdkmanager --licenses
- name: Enable KVM
run: |
echo "Installing KVM"
sudo apt-get update
sudo apt-get --quiet install --yes qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo adduser $USER kvm
sudo chown $USER /dev/kvm
sudo chmod o+rw /dev/kvm
groups $USER
- name: Run Android Build and Tests
run: bash tests/test-android.sh
- name: Upload Maestro artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: maestro-artifacts
path: |
~/.maestro/tests/
/home/runner/.maestro/tests/
/home/runner/.maestro/logs/