-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 769 Bytes
/
ci.yml
File metadata and controls
34 lines (29 loc) · 769 Bytes
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
name: CI
on:
push: { branches: [ main ] }
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# Install Zig (pin your dev build if you want)
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.16.0-dev
- name: Format
run: zig fmt --check .
- name: Build & Test
run: zig build test-all --summary all
- name: Build examples (and install -> zig-out/)
run: zig build examples
- name: Optional Wasm build
run: |
if [ -f src/exports.zig ]; then
zig build wasm
fi