[next] [1] Fix Windows CI build by setting MSVC as default Rust host#590
Merged
joaoantoniocardoso merged 1 commit intomavlink:masterfrom Mar 28, 2026
Merged
Conversation
ba2010a to
e4e1924
Compare
This was referenced Mar 26, 2026
Draft
…ult Rust host On current windows-2022 runner images, rustup installs with host triple x86_64-pc-windows-gnu by default. When cargo then builds with --target x86_64-pc-windows-msvc, pkg-config sees host != target and rejects it as cross-compilation, breaking glib-sys and all GStreamer dependencies. Force the default toolchain to stable-x86_64-pc-windows-msvc so host and target match.
e4e1924 to
3a9a297
Compare
joaomariolago
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix Windows CI build failure caused by Rust toolchain host/target triple mismatch on current
windows-2022runner images.Root cause
rustuponwindows-2022now defaults to host triplex86_64-pc-windows-gnu. Whendeploy.ymlbuilds with--target x86_64-pc-windows-msvc,pkg-configinterprets this as cross-compilation and refuses to find glib, breakingglib-sysand all GStreamer dependencies.Fix
Force
rustup default stable-x86_64-pc-windows-msvcbefore the build so host and target match.Files changed
.github/workflows/deploy.ymlTest plan