-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (35 loc) · 1.04 KB
/
ci.yaml
File metadata and controls
41 lines (35 loc) · 1.04 KB
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
name: CI
on:
push:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: ["0.14.1", "0.15.2", "master"]
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- zig-version: "0.15.2"
# -Dbuild-tests does not work when targeting Linux because the build
# system doesn't preserve linker input file order, which causes the
# linker to spew duplicate symbol errors.
os: macos-latest
check-format: true
build-options: "-Dbuild-tests -Dbuild-benchmarks"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
- if: ${{ matrix.check-format }}
name: Check Formatting
run: zig fmt --check --ast-check .
- name: Build
run: zig build ${{ matrix.build-options }} --summary all