Skip to content

Commit

Permalink
ci: add github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryp committed May 28, 2024
1 parent d1f3878 commit 6b805c3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build
on: [push, pull_request]
env:
zig_version: 0.12.0

jobs:
build:
strategy:
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.zig_version }}
# Ubuntu-specific bit
- run: sudo apt-get update -qq
- run: sudo apt-get install -y libsdl2-dev
- run: zig build
- run: zig build test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.zig_version }}
- run: zig fmt --check src/*.zig

0 comments on commit 6b805c3

Please sign in to comment.