Skip to content

Build and Test

Build and Test #103

Workflow file for this run

name: "Build and Test"
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 */24 * * *'
jobs:
build_and_test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
- name: Run zig fmt check
run: zig fmt --check .
- name: Run test (debug build)
run: zig build -Doptimize=Debug test --summary all
- name: Run test (release build)
run: zig build -Doptimize=ReleaseFast test --summary all