-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (38 loc) · 1.01 KB
/
Copy pathci.yaml
File metadata and controls
46 lines (38 loc) · 1.01 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
42
43
44
45
46
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: [latest]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- zig-version: "master"
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
- name: Check Formatting
run: zig fmt --ast-check --check .
- name: Build
run: zig build --summary all
- name: Build for FreeBSD
run: zig build -Dtarget=native-freebsd --summary all
- name: Build for NetBSD
run: zig build -Dtarget=native-netbsd --summary all
- name: Build for OpenBSD
if: matrix.zig-version == 'master'
run: zig build -Dtarget=native-openbsd -Diconv=false --summary all