Skip to content

.github/rust: don't run cargo build --release on windows for PRs#165

Merged
npry merged 1 commit intomainfrom
npry/ci.rust.selective-opt
Apr 30, 2026
Merged

.github/rust: don't run cargo build --release on windows for PRs#165
npry merged 1 commit intomainfrom
npry/ci.rust.selective-opt

Conversation

@npry
Copy link
Copy Markdown
Collaborator

@npry npry commented Apr 29, 2026

This is by far the slowest step, turning it off on Windows puts the check nearly in line with Linux, and the normal dev-build tells us that it compiles anyway. The --release compile still runs for checks run in any other context than PRs.

Arguably we should turn off Rust checks on Windows for PRs entirely though (along the same lines as macos), since it can take a forever to grab a Windows runner at all — open to that also, but this is at least an incremental improvement

This one step takes around 12 minutes on Windows specifically, making
the check take way longer than on Linux. Disable it except during
nightly runs.

Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: Id33d3651f0d6dfc3066260e136fde04e6a6a6964
@npry npry force-pushed the npry/ci.rust.selective-opt branch from 2ef0c87 to 6eb8b22 Compare April 29, 2026 22:51
@npry npry changed the title .github/rust: don't run cargo build --release on windows for prs .github/rust: don't run cargo build --release on windows for PRs Apr 29, 2026
@npry npry changed the base branch from main to npry/ci.ex.multiplatform April 29, 2026 22:54
@npry npry marked this pull request as ready for review April 29, 2026 23:21
Base automatically changed from npry/ci.ex.multiplatform to main April 29, 2026 23:45
Copy link
Copy Markdown
Contributor

@nrc nrc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good to me

@npry npry merged commit 6eb8b22 into main Apr 30, 2026
27 checks passed
@npry npry deleted the npry/ci.rust.selective-opt branch April 30, 2026 15:53
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.

2 participants