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

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.github/workflows/ci.ymlmodified+2-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,6 +24,7 @@ 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
README.mdmodified+6-0
Changes to README.md
@@ -857,6 +857,12 @@ generated files, interactive output, or failure handling.
857857## Requirements
858858
859859- The exact Zig development build recorded in [`.zig-version`](.zig-version)
860- Linux, macOS, or Windows. All three platforms are required CI targets.
861
862On Windows, discovery accepts native `\\` paths as well as `/` paths and
863launches `zig test` through Zig's portable process API. Ctrl-C and console-close
864events use Windows' native termination behavior; POSIX hosts install cooperative
865SIGINT/SIGTERM handlers for long-running watch and UI modes.
860866
861867See [TOOLCHAIN.md](TOOLCHAIN.md) for the compatibility policy and upgrade
862868process.
TOOLCHAIN.mdmodified+4-1
Changes to TOOLCHAIN.md
@@ -2,7 +2,10 @@
22
33The Zig Test Framework supports the exact Zig development build recorded in
44`.zig-version`. Required CI jobs use that version so pull requests are tested
5against a reproducible toolchain.
5against a reproducible toolchain on `ubuntu-latest`, `macos-latest`, and
6`windows-latest`. Windows support follows the Windows version represented by
7GitHub's current `windows-latest` hosted runner; the exact Zig build remains the
8version pinned in `.zig-version`.
69
710Because the project follows Zig development builds, CI also runs a scheduled
811compatibility check against the latest `0.17.0-dev` build. That check is