xtask: cargo xtask ci runs the CI workflow's steps locally (incl. a Windows type-check from Linux) #77
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/77"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from uiliannn/VItoriaBr. Originally posted by lcg007xd-c on 2026-11-25T21:55:06Z.
What
cargo xtask ciruns, on your machine, the same commands the CI workflow runs.checkjob. That is workspace clippy (plain and--all-features) and the workspace tests.portablejob's clippy and tests, then the whole workspace type-checked forx86_64-pc-windows-msvcwith clippy, plain and--all-features. This only type-checks, nothing is linked. So a Windows-only lint shows up before a push, not on CI.--no-windows-checkleaves that part out.CARGO_FEATURE_PURE=1it builds its portable Rust code instead, which is all a type-check needs, so the Windows check runs from Linux without MSVC.A test reads
.github/workflows/ci.ymland checks that itsPORTABLElist matches the onecargo xtask ciuses, so the two can't drift apart.Why
Main's Windows job went red today on a clippy lint that only the Windows build sees (
manual_is_multiple_ofinvictory-gpu/src/texture.rs, since fixed in2b33e08). From Linux,cargo xtask cistopped at exactly that error on the commit before the fix, and with the fix every step passes.Tests
cargo test -p xtask: the newportable_list_matches_the_workflowandsteps_follow_the_jobstests, plus the existing policy tests.cargo xtask cion Linux, both before the lint fix (it fails at that lint, as it should) and with the fix (all steps pass).Not tested: running it on a Windows host, where it takes the
checkjob's path. The steps there are the workflow's own commands.🤖 Generated with Claude Code