Skip to content

Setup CI

Setup CI #6

Workflow file for this run

name: CI
on: push
permissions:
contents: read
env:
ZIG_VERSION: 0.13.0
jobs:
build-test:
name: "Build and test"
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Build
run: zig build
- name: Test
run: zig build test
check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Check formatting
run: zig fmt --check .