-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 940 Bytes
/
ci.yml
File metadata and controls
43 lines (39 loc) · 940 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
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: [master]
os: [ubuntu-latest]
target:
- x86_64-linux-gnu
- x86_64-linux-musl
- aarch64-linux-gnu
- aarch64-linux-musl
- x86_64-macos-none
- aarch64-macos-none
- x86_64-windows-gnu
- aarch64-windows-gnu
- x86_64-freebsd-none
- aarch64-freebsd-none
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 -Dtarget=${{ matrix.target }} --summary all