File tree Expand file tree Collapse file tree 3 files changed +46
-42
lines changed
Expand file tree Collapse file tree 3 files changed +46
-42
lines changed Original file line number Diff line number Diff line change 1+ name : aarch64 Linux Zig
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ run :
7+ strategy :
8+ matrix :
9+ target :
10+ - aarch64-linux-musl
11+ - aarch64-linux-gnu
12+ runs-on : ubuntu-24.04-arm
13+ steps :
14+ - uses : actions/checkout@v5
15+ - uses : mlugg/setup-zig@v2
16+ with :
17+ version : latest
18+ - name : Build
19+ run : zig build -Dtarget=${{ matrix.target }}
20+ - name : Run list_cpu_features
21+ run : ./zig-out/bin/list_cpu_features --json
Original file line number Diff line number Diff line change 1+ name : amd64 Linux Zig
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ run :
7+ strategy :
8+ matrix :
9+ target :
10+ - x86_64-linux-musl
11+ - x86_64-linux-gnu
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v5
15+ - uses : mlugg/setup-zig@v2
16+ with :
17+ version : latest
18+ - name : Build
19+ run : zig build -Dtarget=${{ matrix.target }}
20+ - name : Run list_cpu_features
21+ run : ./zig-out/bin/list_cpu_features --json
Original file line number Diff line number Diff line change 1- name : Zig build
1+ name : Zig Check
22
3- on :
4- pull_request :
5- branches : [ main ]
6-
7- env :
8- ZIG_VERSION : 0.15.1
3+ on : [push, pull_request]
94
105jobs :
11- lint :
6+ zig-fmt :
127 runs-on : ubuntu-latest
138 steps :
149 - uses : actions/checkout@v5
1510 - uses : mlugg/setup-zig@v2
1611 with :
17- version : ${{ env.ZIG_VERSION }}
18- mirror : ' https://zigmirror.com'
12+ version : latest
1913 - run : zig fmt --check .
20-
21- build :
22- runs-on : ubuntu-latest
23- steps :
24- - uses : actions/checkout@v5
25- - uses : mlugg/setup-zig@v2
26- with :
27- version : ${{ env.ZIG_VERSION }}
28- mirror : ' https://zigmirror.com'
29- - run : zig build
30-
31- run :
32- strategy :
33- matrix :
34- include :
35- - os : ubuntu-latest
36- target : x86_64-linux-musl
37- - os : ubuntu-latest
38- target : x86_64-linux-gnu
39- - os : ubuntu-24.04-arm64
40- target : aarch64-linux-musl
41- - os : ubuntu-24.04-arm64
42- target : aarch64-linux-gnu
43- runs-on : ${{ matrix.os }}
44- steps :
45- - uses : actions/checkout@v5
46- - uses : mlugg/setup-zig@v2
47- with :
48- version : ${{ env.ZIG_VERSION }}
49- mirror : ' https://zigmirror.com'
50- - name : Run list_cpu_features
51- run : zig build run -Dtarget=${{ matrix.target }} -- --json
You can’t perform that action at this time.
0 commit comments