fix(ci): persist sccache and align documentation tests with nightly - #34
Merged
Merged
Conversation
Enable sccaches GitHub Actions backend so compiler artifacts can be reused across CI runs while preserving the existing rust-cache target caching behavior. Run documentation tests explicitly on nightly, matching the toolchain already required by the documentation build. Update the documentation CI job to install nightly directly instead of using stable for doctests. This keeps the existing cache layout intact while removing the unnecessary toolchain mismatch in the documentation job.
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.
This updates Argx’s Rust CI caching without changing the existing cache layout.
The main fix is enabling sccache’s GitHub Actions backend so compiler artifacts persist across ephemeral runners instead of being written only to runner-local storage.
The documentation job is also simplified to use nightly directly. Argx already requires nightly for documentation-related work, so installing stable first and then switching toolchains was unnecessary.
The existing
rust-cachebehavior, including target caching, is intentionally preserved.Changes
SCCACHE_GHA_ENABLED=truerust-cachetarget caching behaviorThis keeps Cargo target caching and sccache complementary rather than trying to replace one with the other.