Skip to content

Commit d582e20

Browse files
committed
Introduce continuous integration
1 parent f1e32c7 commit d582e20

File tree

1 file changed

+39
-0
lines changed

1 file 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: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
zig-version: [0.13.0, master]
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Linux
25+
if: runner.os == 'Linux'
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install libgles-dev libpulse-dev libxext-dev
29+
30+
- name: Setup Zig
31+
uses: mlugg/setup-zig@v1
32+
with:
33+
version: ${{ matrix.zig-version }}
34+
35+
- name: Check Formatting
36+
run: zig fmt --ast-check --check .
37+
38+
- name: Build
39+
run: zig build --summary all

0 commit comments

Comments
 (0)