Skip to content

Commit 5d63625

Browse files
authored
Merge pull request #3 from dustin/main
Set up CI
2 parents 70a8f93 + 99d3aa5 commit 5d63625

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/zig.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
name: Build on ${{ matrix.os }} with Zig ${{ matrix.zig_version }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
- windows-latest
20+
- ubuntu-24.04-arm
21+
zig_version: [ "0.14.0-dev.3187+d4c85079c", "master" ]
22+
23+
steps:
24+
- name: Check out repository
25+
uses: actions/checkout@v4
26+
27+
- name: Install Zig
28+
uses: mlugg/setup-zig@v1
29+
with:
30+
version: ${{ matrix.zig_version }}
31+
32+
- name: Build project
33+
run: zig build
34+
35+
- name: Run tests
36+
run: zig build test --summary all

0 commit comments

Comments
 (0)