Skip to content

Commit fb9b321

Browse files
committed
Add GitHub Action
1 parent 359865a commit fb9b321

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
zig-version: ["0.13.0"]
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
include:
20+
- zig-version: "0.12.1"
21+
os: ubuntu-latest
22+
- zig-version: "master"
23+
os: ubuntu-latest
24+
25+
runs-on: ${{ matrix.os }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Zig
31+
uses: mlugg/setup-zig@v1
32+
with:
33+
version: ${{ matrix.zig-version }}
34+
35+
- name: Build
36+
run: zig build --summary all
37+
38+
- name: Run tests
39+
run: zig build test --summary all
File renamed without changes.

0 commit comments

Comments
 (0)