hamt/.github/workflows/main.yml

41 lines
900 B
YAML
Raw Permalink Normal View History

2023-05-21 16:46:19 +00:00
name: Nightly
on:
push:
paths:
- "**.zig"
branches:
- main
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: goto-bus-stop/setup-zig@v2
with:
2024-01-17 22:27:02 +00:00
version: 0.12.0-dev.2063+804cee3b9
2023-05-21 16:46:19 +00:00
- uses: actions/checkout@v3
- run: zig fmt src/*.zig
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: goto-bus-stop/setup-zig@v2
with:
2024-01-17 22:27:02 +00:00
version: 0.12.0-dev.2063+804cee3b9
2023-05-21 16:46:19 +00:00
- uses: actions/checkout@v3
- run: zig build test
bench:
runs-on: ubuntu-latest
steps:
- uses: goto-bus-stop/setup-zig@v2
with:
2024-01-17 22:27:02 +00:00
version: 0.12.0-dev.2063+804cee3b9
2023-05-21 16:46:19 +00:00
- uses: actions/checkout@v3
- run: zig build -Doptimize=ReleaseFast -Dcpu=baseline bench