v0.2.0 #36
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test-zig-release: | |
name: Test Zig Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: 0.12.0 | |
- name: Run Tests | |
run: zig build test | |
- name: Check Formatting | |
run: zig fmt --check . | |
test-zig-latest: | |
name: Test Zig Latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
- name: Run Tests | |
continue-on-error: true | |
run: zig build test | |
- name: Check Formatting | |
continue-on-error: true | |
run: zig fmt --check . | |
examples: | |
name: Examples | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: 0.12.0 | |
- name: Run Enemy Spawner | |
run: | | |
pushd examples/enemy_spawner | |
zig build run | |
popd | |
- name: Run Approximate Bayes | |
run: | | |
pushd examples/approximate_bayes | |
zig build run | |
popd |