Skip to content

fix(ci): persist sccache and align documentation tests with nightly - #34

Merged
zerosnacks merged 1 commit into
masterfrom
fix/ci-sccache
Sep 14, 2026
Merged

zerosnacks merged 1 commit into
masterfrom
fix/ci-sccache

Conversation

@zerosnacks

Copy link
Copy Markdown
Member

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-cache behavior, including target caching, is intentionally preserved.

Changes

  • enable SCCACHE_GHA_ENABLED=true
  • keep the existing rust-cache target caching behavior
  • run doctests explicitly with nightly
  • simplify the documentation CI job to install nightly directly

This keeps Cargo target caching and sccache complementary rather than trying to replace one with the other.

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.
@zerosnacks
zerosnacks enabled auto-merge (squash) September 14, 2026 21:03
@zerosnacks
zerosnacks merged commit 6424f63 into master Sep 14, 2026
11 checks passed
@zerosnacks
zerosnacks deleted the fix/ci-sccache branch September 14, 2026 21:05
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