ReviewOS

also looking at this

zig-utils/zig-test-framework

Add Windows support and CI coverage

#24
Merged glennmichael123 wants to merge codex/issue-6-windows-support into main
6 files +170 -266
.github/workflows/ci.ymlmodified+10-1
Changes to .github/workflows/ci.yml
@@ -15,7 +15,7 @@ jobs:
1515 runs-on: ${{ matrix.os }}
1616 strategy:
1717 matrix:
18 os: [ubuntu-latest, macos-latest]
18 os: [ubuntu-latest, macos-latest, windows-latest]
1919 fail-fast: false
2020
2121 steps:
@@ -24,13 +24,22 @@ jobs:
2424
2525 - name: Read supported Zig version
2626 id: zig-version
27 shell: bash
2728 run: echo "version=$(cat .zig-version)" >> "$GITHUB_OUTPUT"
2829
2930 - name: Setup Zig
31 if: runner.os != 'Windows'
3032 uses: pantry-pm/pantry/packages/action@main
3133 with:
3234 packages: zig@${{ steps.zig-version.outputs.version }}
3335
36 - name: Setup Zig on Windows
37 if: runner.os == 'Windows'
38 uses: mlugg/setup-zig@v2
39 with:
40 version: ${{ steps.zig-version.outputs.version }}
41 mirror: https://zig.mirror.mschae23.de/zig
42
3443 - name: Verify Zig installation
3544 run: zig version
3645