Skip to content

Commit eba686d

Browse files
inge4presMizux
authored andcommitted
ci: Zig build on MacOs, Win
Signed-off-by: inge4pres <fgualazzi@gmail.com>
1 parent 7f268ed commit eba686d

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: amd64 MacOS Zig
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run:
7+
strategy:
8+
matrix:
9+
target:
10+
- x86_64-macos-none
11+
runs-on: macos-13 # Using x86 processors
12+
steps:
13+
- uses: actions/checkout@v5
14+
- uses: mlugg/setup-zig@v2
15+
with:
16+
version: latest
17+
- name: Build
18+
run: zig build -Dtarget=${{ matrix.target }}
19+
- name: Run list_cpu_features
20+
run: ./zig-out/bin/list_cpu_features --json
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: amd64 Windows Zig
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run:
7+
strategy:
8+
matrix:
9+
target:
10+
- x86_64-windows-gnu
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
- uses: mlugg/setup-zig@v2
15+
with:
16+
version: latest
17+
- name: Build
18+
run: zig build -Dtarget=${{ matrix.target }}
19+
- name: Run list_cpu_features
20+
run: .\zig-out\bin\list_cpu_features.exe --json
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Arm64 MacOS Zig
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run:
7+
strategy:
8+
matrix:
9+
target:
10+
- aarch64-macos-none
11+
runs-on: macos-latest # Using M1 processors
12+
steps:
13+
- uses: actions/checkout@v5
14+
- uses: mlugg/setup-zig@v2
15+
with:
16+
version: latest
17+
- name: Build
18+
run: zig build -Dtarget=${{ matrix.target }}
19+
- name: Run list_cpu_features
20+
run: ./zig-out/bin/list_cpu_features --json

0 commit comments

Comments
 (0)