This repository was archived by the owner on Nov 26, 2025. It is now read-only.
ast: don't add semicolons to static assertion blocks #299
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: | |
| paths: | |
| - '**.zig' | |
| - '**.zon' | |
| - '**.c' | |
| - '**.h' | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - uses: mlugg/setup-zig@v2 | |
| - name: Build | |
| run: zig build | |
| - name: Build 32-bit | |
| if: matrix.os == 'ubuntu-latest' | |
| run: zig build -Dtarget=arm-linux | |
| - name: Run Tests | |
| run: | | |
| zig build test -Doptimize=Debug | |
| zig build test -Doptimize=ReleaseFast | |
| - name: Run Tests MSVC | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| zig build test -Dtarget=native-windows-msvc -Doptimize=Debug | |
| zig build test -Dtarget=native-windows-msvc -Doptimize=ReleaseFast | |
| - name: Run Cross-Translation Tests | |
| run: zig build test -Doptimize=Debug -Dtest-cross-targets | |
| - name: Run Examples | |
| run: zig build all --build-file examples/build.zig |