From a7e02c38c3a136d1a0685f98bd69e72f6928389d Mon Sep 17 00:00:00 2001 From: zerosnacks <95942363+zerosnacks@users.noreply.github.com> Date: Mon, 14 Sep 2026 23:03:03 +0200 Subject: [PATCH] ci: persist sccache and align documentation tests with nightly 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. --- .github/workflows/ci.yml | 5 +++-- Makefile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bdfd2c..9116641 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ env: CARGO_TERM_COLOR: always CARGO_BUILD_WARNINGS: deny RUST_BACKTRACE: full + SCCACHE_GHA_ENABLED: "true" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} @@ -112,10 +113,10 @@ jobs: with: persist-credentials: false - - name: Install stable Rust toolchain + - name: Install nightly Rust toolchain uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master with: - toolchain: stable + toolchain: nightly - name: Install sccache uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11 diff --git a/Makefile b/Makefile index 87d0a1a..6fd7d57 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ test-unit: ## Run deterministic unit and integration tests. .PHONY: test-doc test-doc: ## Run doc tests. - cargo test \ + cargo +nightly test \ --doc \ --workspace \ --all-features \