-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 1.02 KB
/
build.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
name: CI Build
on:
push:
jobs:
Build:
strategy:
fail-fast: false
max-parallel: 20
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
mode: [ Debug, ReleaseSafe, ReleaseSmall ]
target: [ native, x86_64-linux-gnu, x86_64-linux-musl, aarch64-linux-gnu, x86_64-macos, aarch64-macos, x86_64-windows, aarch64-windows ]
name: ${{ matrix.os }}, ${{ matrix.target }}-${{ matrix.mode }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
name: Checkout repo
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.13.0-dev.351+64ef45eb0
- name: Build
run: zig build -Doptimize=${{ matrix.mode }} -Dtarget=${{ matrix.target }}
- name: Upload
if: matrix.os == 'ubuntu-latest' && matrix.target != 'native' && matrix.mode == 'ReleaseSmall'
uses: actions/upload-artifact@v4
with:
path: zig-out/bin
name: ${{ matrix.target }} - ${{ matrix.mode }}