Skip to content

Commit add6a85

Browse files
committed
First pass at CI
1 parent 6bb28ba commit add6a85

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/ci.yaml

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:
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: [master]
18+
os: [ubuntu-latest, windows-latest]
19+
include:
20+
- zig-version: "0.15.0-dev.1218+bc8e1a74c"
21+
os: ubuntu-latest
22+
runs-on: ${{ matrix.os }}
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Zig
28+
uses: mlugg/setup-zig@v2
29+
with:
30+
version: ${{ matrix.zig-version }}
31+
32+
- name: Check Formatting
33+
run: zig fmt --ast-check --check .
34+
35+
- name: Build
36+
run: zig build --summary all

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
[![CI](https://github.com/GamesByMason/sdl_zig/actions/workflows/ci.yaml/badge.svg)](https://github.com/GamesByMason/sdl_zig/actions)
2+
13
# SDL3 Zig
24

3-
SDL3 ported to the Zig build system.
5+
SDL3 ported to the Zig build system. Requires at least Zig `0.15.0-dev.1218+bc8e1a74c`.
46

57
Supports cross compilation and custom platform configuration.
68

0 commit comments

Comments
 (0)