Skip to content

Commit 22f4fde

Browse files
committed
try this
1 parent 00a64c2 commit 22f4fde

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
with:
3838
packages: 'tools platform-tools platforms;android-35 build-tools;35.0.0 ndk;29.0.13113456'
3939

40+
#
41+
# Stable Zig Builds
42+
#
43+
4044
- name: Setup Zig Stable (0.14.0)
4145
# note(jae): 2024-09-15
4246
# Uses download mirror first as preferred by Zig Foundation
@@ -53,6 +57,27 @@ jobs:
5357
run: zig build -Dandroid=true --verbose
5458
working-directory: examples/sdl2
5559

60+
- name: Enable KVM (For Android emulation)
61+
if: startsWith(matrix.os, 'ubuntu-')
62+
run: |
63+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
64+
sudo udevadm control --reload-rules
65+
sudo udevadm trigger --name-match=kvm
66+
67+
- name: Run Minimal Example (Android Emulator)
68+
uses: reactivecircus/android-emulator-runner@v2
69+
if: startsWith(matrix.os, 'ubuntu-')
70+
working-directory: examples/minimal
71+
with:
72+
api-level: 34
73+
system-image-api-level: 34-ext9
74+
target: android-automotive
75+
script: adb shell am start -n com.zig.minimal/android.app.NativeActivity
76+
77+
#
78+
# Nightly Zig Builds
79+
#
80+
5681
- name: Setup Zig Nightly
5782
uses: mlugg/setup-zig@v1
5883
with:

0 commit comments

Comments
 (0)