Improve top-level help formatting #148
Workflow file for this run
This file contains hidden or 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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| # mlugg/setup-zig still declares node20, which GitHub runners are | |
| # deprecating; force Node 24 ahead of the switchover. | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| fmt: | |
| name: zig fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.15.2 | |
| - run: zig fmt --check build.zig build.zig.zon src test | |
| test: | |
| name: test (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.15.2 | |
| - name: Fetch dependencies (with retry) | |
| run: | | |
| for i in 1 2 3 4 5; do | |
| zig build --fetch=all && exit 0 | |
| echo "fetch attempt $i failed; retrying in 10s" >&2 | |
| sleep 10 | |
| done | |
| exit 1 | |
| - name: Build | |
| run: zig build --summary all | |
| - name: Unit tests | |
| run: zig build test --summary all | |
| - name: Integration tests (real PTY) | |
| run: zig build test-integration --summary all | |
| release-safe: | |
| name: test ReleaseSafe | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.15.2 | |
| - name: Fetch dependencies (with retry) | |
| run: | | |
| for i in 1 2 3 4 5; do | |
| zig build --fetch=all && exit 0 | |
| echo "fetch attempt $i failed; retrying in 10s" >&2 | |
| sleep 10 | |
| done | |
| exit 1 | |
| - run: zig build test-all -Doptimize=ReleaseSafe --summary all | |
| nix: | |
| name: nix build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: DeterminateSystems/nix-installer-action@v22 | |
| - run: nix flake check | |
| - run: nix build -L | |
| - run: nix run . -- version |