Skip to content

Commit decb799

Browse files
committed
Fix android CI
1 parent 6b3d967 commit decb799

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,16 @@ jobs:
1818
uses: actions/checkout@v4
1919
- uses: actions/setup-java@v4
2020
with:
21-
distribution: 'adopt'
22-
java-version: '17'
21+
distribution: "adopt"
22+
java-version: "17"
23+
- name: Setup Docker
24+
run: |
25+
# Install Docker and Colima (lightweight Docker runtime)
26+
brew install docker colima
27+
# Start Colima with ARM64 architecture
28+
colima start --arch aarch64 --vm-type=vz --vz-rosetta
29+
# Verify Docker is working
30+
docker version
2331
- name: Setup Gradle
2432
uses: gradle/actions/setup-gradle@v3
2533
- name: Start Docker containers
@@ -28,7 +36,7 @@ jobs:
2836
run: ./gradlew library:testDebug
2937
library-integration:
3038
name: Library (Integration Tests)
31-
runs-on: ubuntu-latest
39+
runs-on: macos-latest
3240
steps:
3341
- name: Checkout
3442
uses: actions/checkout@v4
@@ -37,20 +45,25 @@ jobs:
3745
- name: Configure JDK
3846
uses: actions/setup-java@v4
3947
with:
40-
distribution: 'adopt'
41-
java-version: '17'
42-
- name: Enable KVM group perms
48+
distribution: "adopt"
49+
java-version: "17"
50+
- name: Setup Docker
4351
run: |
44-
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
45-
sudo udevadm control --reload-rules
46-
sudo udevadm trigger --name-match=kvm
52+
# Install Docker and Colima (lightweight Docker runtime)
53+
brew install docker colima
54+
# Start Colima with ARM64 architecture
55+
colima start --arch aarch64 --vm-type=vz --vz-rosetta
56+
# Verify Docker is working
57+
docker version
4758
- name: Setup Gradle
4859
uses: gradle/actions/setup-gradle@v3
4960
- name: Start Docker containers
5061
run: dev/up
5162
- name: Gradle Run Integration Tests
5263
uses: reactivecircus/android-emulator-runner@v2
5364
with:
54-
api-level: 29
65+
api-level: 30
66+
target: google_apis
67+
arch: arm64-v8a
68+
disable-animations: true
5569
script: ./gradlew connectedCheck
56-

0 commit comments

Comments
 (0)