xtask: cargo xtask ci runs the CI workflow's steps locally (incl. a Windows type-check from Linux) #77
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/uiliannn--VItoriaBr!77
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/77/head"
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?
@lcg007xd-c on GitHub · 2026-11-25 21:55 UTC · original
lcg007xd-c:feat/xtask-ci→main· +179 −2 · 4 files · 2 commits · merged 2026-11-25 23:02 UTCWhat
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
cargo xtask ciruns what the CI workflow runs 3b66f19445