From 876c85113b798e15cfc527f02a799090247daba9 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 3 Dec 2026 12:08:33 +1300 Subject: [PATCH] CI trial: the app job restores target/ with rust-cache (saved only on main) ahead of kache, to measure against kache alone --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43ae6e88..750b8aa2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,12 @@ jobs: docker run -d --name s3 -p 59000:9000 \ -e RUSTFS_ACCESS_KEY=visualci -e RUSTFS_SECRET_KEY=visualci-dev-secret rustfs/rustfs:1.0.6 for _ in $(seq 1 30); do curl -s -o /dev/null http://127.0.0.1:59000/ && break; sleep 1; done + # Trial (c) on this job: rust-cache restores target/ (incremental state and our own crates), with kache behind + # it for dependency misses. Its key covers Cargo.lock and the toolchain; only main saves it, like kache. + - uses: Swatinem/rust-cache@v2 + with: + workspaces: app + save-if: ${{ github.ref == 'refs/heads/main' }} # Compile cache (kache, as Cargo's rustc wrapper): the R2 bucket every machine shares (KACHE_BUCKET), else the # GitHub Actions cache. Only main writes it: the read-write key is a secret of the kache-write environment, # which only main may use, so a pull request (whatever its ci.yml says) gets the read-only key.