Skip to content

Add build, test, and lint CI #1

Add build, test, and lint CI

Add build, test, and lint CI #1

Workflow file for this run

name: Build, test, and lint
on:
push:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- run: zig build
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- run: zig build test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with: { fetch-depth: 0 }
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- run: zig fmt --check .