Skip to content

Add an on-demand Windows Rust check on the self-hosted runner - #392

Merged
thcp merged 1 commit into
mainfrom
add-windows-check-workflow
Aug 17, 2026
Merged

Add an on-demand Windows Rust check on the self-hosted runner#392
thcp merged 1 commit into
mainfrom
add-windows-check-workflow

Conversation

@thcp

@thcp thcp commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Companion to `macos-check.yml`, and this time justified by a real incident rather than a hypothetical: `v0.11.1`'s first release attempt shipped a broken Windows build. `download_file` silently lost its `#[cfg(unix)]` gate while being refactored (a new helper inserted directly above it took over the attribute, since a Rust `#[cfg]` only applies to the single following item) and started compiling - and failing to compile, since it called a still-`#[cfg(unix)]`-gated helper - on Windows too. `ci.yml` is 100% `ubuntu-latest` and `macos-check.yml` also satisfies `cfg(unix)`, so neither could have caught it. Only an actual Windows compile could, and none existed until now.

Fixed directly on `main` as an emergency hotfix (bypassed branch protection given the release was live and broken; verified natively on Windows, macOS CI, and WSL before pushing) and the release was re-fired successfully - this PR is the follow-up so it doesn't happen again silently.

Test plan

Purely additive CI config, inert until manually triggered. No app code touched.

Companion to macos-check.yml. Justified twice over in one session: first by
finding pre-existing macOS-only clippy issues nothing had ever caught, then
for real when download_file silently lost its #[cfg(unix)] gate and shipped
a broken Windows build in v0.11.1's first release attempt - undetected by
ci.yml (100% ubuntu-latest) or macos-check.yml (macOS also satisfies unix,
so it never exercised the Windows-only code path either).

Same shape as macos-check.yml: build/clippy/test only, workflow_dispatch
only, never touches packaging or uploads.
@thcp
thcp merged commit 3fd3a29 into main Aug 17, 2026
10 checks passed
@thcp
thcp deleted the add-windows-check-workflow branch August 17, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant