Skip to content

Cache rust build in actions#513

Merged
seanses merged 4 commits intomainfrom
di/cache-rust-build
Sep 26, 2025
Merged

Cache rust build in actions#513
seanses merged 4 commits intomainfrom
di/cache-rust-build

Conversation

@seanses
Copy link
Collaborator

@seanses seanses commented Sep 25, 2025

In response to A Joint Statement on Sustainable Stewardship and Rust Foundation Signs Joint Statement on Open Source Infrastructure Stewardship, implements caching of dependency and build artifact, and reduces some CI runtime. Cache entry keys are formed by os_type-arch_type-hash of Cargo.lock, cache configuration adapts from https://docs.github.com/en/actions/tutorials/build-and-test-code/rust#caching-dependencies.

@seanses seanses force-pushed the di/cache-rust-build branch from f376441 to e9776f8 Compare September 25, 2025 23:20
@seanses seanses marked this pull request as ready for review September 25, 2025 23:53
Copy link
Contributor

@assafvayner assafvayner left a comment

Choose a reason for hiding this comment

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

LGTM should add to CAS as well, it has only 1 target directory so simpler

Copy link
Contributor

@jgodlew jgodlew left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@jgodlew
Copy link
Contributor

jgodlew commented Sep 26, 2025

LGTM should add to CAS as well, it has only 1 target directory so simpler

CAS already has this caching being done (in .github/actions/common-rust/action.yaml).

@seanses seanses merged commit 8ee0a5c into main Sep 26, 2025
6 checks passed
@seanses seanses deleted the di/cache-rust-build branch September 26, 2025 18:16
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.

4 participants