From 98e70c5a84f8dbde717dc3869301e9cab9dc6742 Mon Sep 17 00:00:00 2001 From: Dakera Ops Date: Thu, 18 Jun 2026 10:19:08 +0000 Subject: [PATCH] ci: unify arm64 job cache keys to share compiled artifacts check/clippy/test all use shared-key: arm64-ci so each job reads from the others' cached target/ artifacts instead of compiling from scratch. Clippy and test can reuse check's compiled deps, cutting repeat compilation on warm cache runs by ~40-60%. Also adds cache-all-crates: true to integration-test to cache crate source extraction for the release binary build. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46bac6b..04033a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 with: - shared-key: check + shared-key: arm64-ci - run: cargo check clippy: @@ -83,7 +83,7 @@ jobs: components: clippy - uses: Swatinem/rust-cache@v2 with: - shared-key: clippy + shared-key: arm64-ci - run: cargo clippy -- -D warnings fmt: @@ -104,7 +104,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 with: - shared-key: test + shared-key: arm64-ci - run: cargo test integration-test: @@ -129,6 +129,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: shared-key: integration-test + cache-all-crates: "true" - name: Build dk binary run: cargo build --release - name: Wait for dakera server