Skip to content

Commit bb84f42

Browse files
committed
Introduce continuous integration
(cherry picked from commit 18bb462)
1 parent a0d4d3c commit bb84f42

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yaml

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

0 commit comments

Comments
 (0)