Build and Test #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.11.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 |