@@ -54,47 +54,42 @@ jobs:
5454 working-directory : examples/minimal
5555
5656 - name : Build SDL2 Example (Zig Stable)
57- run : zig build -Dandroid=true --verbose
57+ run : |
58+ zig build -Dandroid=true --verbose
59+ zig build -Dandroid=true -Dcrash-on-exception --verbose
5860 working-directory : examples/sdl2
5961
60- # NOTE(jae): 2025-03-30
61- # Attempted to run examples on Ubuntu OS but even though the SDL2 example
62- # gets obvious errors with a dialog box popping up, I can't easily detect if a failure occurred.
63- #
64- # If I hacked the onCreate of SDLActivity and just made it throw an exception instead of having a dialog box
65- # that would probably catch instantiation issues but not sure it's worth doing.
66-
67- # - name: Enable KVM (For Android emulation)
68- # if: startsWith(matrix.os, 'ubuntu-')
69- # run: |
70- # echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
71- # sudo udevadm control --reload-rules
72- # sudo udevadm trigger --name-match=kvm
73-
74- # - name: Run Minimal Example (Android Emulator)
75- # if: startsWith(matrix.os, 'ubuntu-')
76- # uses: reactivecircus/android-emulator-runner@v2
77- # with:
78- # api-level: 34
79- # arch: x86_64
80- # profile: Nexus 6
81- # script: |
82- # adb install ./zig-out/bin/minimal.apk
83- # adb shell am start -S -W -n com.zig.minimal/android.app.NativeActivity
84- # working-directory: examples/minimal
85-
86- # - name: Run SDL2 Example (Android Emulator)
87- # if: startsWith(matrix.os, 'ubuntu-')
88- # uses: reactivecircus/android-emulator-runner@v2
89- # with:
90- # api-level: 34
91- # arch: x86_64
92- # profile: Nexus 6
93- # #script: adb install ./zig-out/bin/sdl-zig-demo.apk && adb shell am start -S -W -n com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
94- # script: |
95- # adb install ./zig-out/bin/sdl-zig-demo.apk
96- # adb shell monkey --kill-process-after-error --monitor-native-crashes --pct-touch 100 -p com.zig.sdl2 -v 50
97- # working-directory: examples/sdl2
62+ - name : Enable KVM (For Android emulation)
63+ if : startsWith(matrix.os, 'ubuntu-')
64+ run : |
65+ echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
66+ sudo udevadm control --reload-rules
67+ sudo udevadm trigger --name-match=kvm
68+
69+ - name : Run Minimal Example (Android Emulator)
70+ if : startsWith(matrix.os, 'ubuntu-')
71+ uses : reactivecircus/android-emulator-runner@v2
72+ with :
73+ api-level : 34
74+ arch : x86_64
75+ profile : Nexus 6
76+ script : |
77+ adb install ./zig-out/bin/minimal.apk
78+ adb shell am start -S -W -n com.zig.minimal/android.app.NativeActivity
79+ working-directory : examples/minimal
80+
81+ - name : Run SDL2 Example (Android Emulator)
82+ if : startsWith(matrix.os, 'ubuntu-')
83+ uses : reactivecircus/android-emulator-runner@v2
84+ with :
85+ api-level : 34
86+ arch : x86_64
87+ profile : Nexus 6
88+ # script: adb install ./zig-out/bin/sdl-zig-demo.apk && adb shell am start -S -W -n com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
89+ script : |
90+ adb install ./zig-out/bin/sdl-zig-demo.apk
91+ adb shell monkey --kill-process-after-error --monitor-native-crashes --pct-touch 100 -p com.zig.sdl2 -v 50
92+ working-directory : examples/sdl2
9893
9994 #
10095 # Nightly Zig Builds
0 commit comments