also looking at this
Add Windows support and CI coverage
#24
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.
| @@ -15,7 +15,7 @@ jobs: | ||
| 15 | 15 | runs-on: ${{ matrix.os }} |
| 16 | 16 | strategy: |
| 17 | 17 | matrix: |
| 18 | os: [ubuntu-latest, macos-latest] | |
| 18 | os: [ubuntu-latest, macos-latest, windows-latest] | |
| 19 | 19 | fail-fast: false |
| 20 | 20 | |
| 21 | 21 | steps: |
| @@ -24,6 +24,7 @@ jobs: | ||
| 24 | 24 | |
| 25 | 25 | - name: Read supported Zig version |
| 26 | 26 | id: zig-version |
| 27 | shell: bash | |
| 27 | 28 | run: echo "version=$(cat .zig-version)" >> "$GITHUB_OUTPUT" |
| 28 | 29 | |
| 29 | 30 | - name: Setup Zig |
| @@ -857,6 +857,12 @@ generated files, interactive output, or failure handling. | ||
| 857 | 857 | ## Requirements |
| 858 | 858 | |
| 859 | 859 | - The exact Zig development build recorded in [`.zig-version`](.zig-version) |
| 860 | - Linux, macOS, or Windows. All three platforms are required CI targets. | |
| 861 | ||
| 862 | On Windows, discovery accepts native `\\` paths as well as `/` paths and | |
| 863 | launches `zig test` through Zig's portable process API. Ctrl-C and console-close | |
| 864 | events use Windows' native termination behavior; POSIX hosts install cooperative | |
| 865 | SIGINT/SIGTERM handlers for long-running watch and UI modes. | |
| 860 | 866 | |
| 861 | 867 | See [TOOLCHAIN.md](TOOLCHAIN.md) for the compatibility policy and upgrade |
| 862 | 868 | process. |
| @@ -2,7 +2,10 @@ | ||
| 2 | 2 | |
| 3 | 3 | The Zig Test Framework supports the exact Zig development build recorded in |
| 4 | 4 | `.zig-version`. Required CI jobs use that version so pull requests are tested |
| 5 | against a reproducible toolchain. | |
| 5 | against a reproducible toolchain on `ubuntu-latest`, `macos-latest`, and | |
| 6 | `windows-latest`. Windows support follows the Windows version represented by | |
| 7 | GitHub's current `windows-latest` hosted runner; the exact Zig build remains the | |
| 8 | version pinned in `.zig-version`. | |
| 6 | 9 | |
| 7 | 10 | Because the project follows Zig development builds, CI also runs a scheduled |
| 8 | 11 | compatibility check against the latest `0.17.0-dev` build. That check is |