-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.13 KB
/
zig-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Zig
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
targets:
- x86_64-linux-gnu
- x86_64-linux-musl
- x86-linux-gnu
- x86-linux-musl
- aarch64-linux-gnu
- aarch64-linux-musl
- riscv64-linux-musl
- powerpc64-linux-musl
- x86_64-macos
- aarch64-macos
- x86-windows
- x86_64-windows
- aarch64-windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: mlugg/setup-zig@v1
- name: Build Summary ${{ matrix.targets }}
run: zig build --build-file $PWD/tests/build.zig --summary all -freference-trace -Dtarget=${{ matrix.targets }}
zig-msvc:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
- name: Build Summary x86_64-windows-msvc
run: zig build --build-file $PWD/tests/build.zig --summary all -freference-trace -Dtarget=native-windows-msvc