Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Enable rust caching for Windows, if vcpkg dependencies unchanged. #155

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

martinling
Copy link
Member

@martinling martinling commented Jul 31, 2024

We had previously disabled the rust-cache action, because it could cause problems on macOS builds, where the latest GTK and dependencies are installed from Homebrew and it was possible for the cached Rust crate builds to end up pointing to library install paths that were no longer valid in the latest Homebrew install.

However, Windows is currently our slowest build platform, and our non-Rust dependency versions are fixed there by our choice of vcpkg commit ID, so by using this as a key to the rust-cache action, we can cache safely.

This cuts the Windows build time from 9m33s to 4m20s. Which is still the longest (Linux & macOS are around 3 mins each), but much less annoying.

@martinling martinling force-pushed the rust-cache branch 2 times, most recently from 7637ba4 to d9c1c4d Compare July 31, 2024 12:15
Otherwise, the cache will only be kept for the default toolchain.
Our non-Rust dependency versions are fixed on Windows by our choice of
vcpkg commit ID, so by using this as a key to the rust-cache action, we
can cache safely.
@martinling martinling merged commit 7fba04a into greatscottgadgets:main Jul 31, 2024
10 checks passed
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