Skip to content

Commit afffe8e

Browse files
committed
do it
1 parent ea49343 commit afffe8e

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
build:
16-
name: Build
15+
build-stable:
16+
name: Zig (Stable)
1717
strategy:
1818
matrix:
1919
include:
@@ -72,3 +72,48 @@ jobs:
7272
# See: https://github.com/silbinarywolf/zig-android-sdk/actions/runs/10979711793/job/30484520174?pr=5#step:10:30
7373
run: zig build -Dtarget=x86_64-linux-android --verbose
7474
working-directory: examples/sdl2
75+
76+
build-nightly:
77+
name: Zig (Nightly)
78+
strategy:
79+
matrix:
80+
include:
81+
- os: "ubuntu-22.04"
82+
- os: "windows-latest"
83+
- os: "macos-12" # x86_64
84+
- os: "macos-14" # arm64 as per table: https://github.com/actions/runner-images/blob/8a1eeaf6ac70c66f675a04078d1a7222edd42008/README.md#available-images
85+
86+
runs-on: ${{matrix.os}}
87+
88+
steps:
89+
- uses: actions/checkout@v4
90+
91+
- name: Set up JDK 17
92+
uses: actions/setup-java@v3
93+
with:
94+
java-version: '17'
95+
distribution: 'temurin'
96+
97+
- name: Setup Android SDK
98+
uses: android-actions/setup-android@v3
99+
with:
100+
packages: 'tools platform-tools platforms;android-35 build-tools;35.0.0 ndk;27.0.12077973'
101+
102+
- name: Setup Zig Nightly
103+
uses: mlugg/setup-zig@v1
104+
with:
105+
version: "master"
106+
107+
- name: Build Minimal Example (Zig Nightly)
108+
run: zig build -Dandroid=true --verbose
109+
working-directory: examples/minimal
110+
111+
- name: Build SDL2 Example (Zig Nightly)
112+
# "zig build -Dandroid=true" fails for 0.14.0-dev.1632
113+
#
114+
# android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/hardware_buffer.h:322:42:
115+
# error: expression is not an integral constant expression
116+
#
117+
# See: https://github.com/silbinarywolf/zig-android-sdk/actions/runs/10979711793/job/30484520174?pr=5#step:10:30
118+
run: zig build -Dtarget=x86_64-linux-android --verbose
119+
working-directory: examples/sdl2

0 commit comments

Comments
 (0)