diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c103f4fac6..c0ef2dbcc8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,8 @@ jobs: - name: Enable Rust Caching uses: Swatinem/rust-cache@v2 with: - prefix-key: v1-rust + prefix-key: v0-rust + shared-key: build-test - name: Build # Build in release without `testing` feature, this should work without `hotshot_example` config. diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5fed0da73e..002438a17b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -41,6 +41,8 @@ jobs: - name: Enable Rust Caching uses: Swatinem/rust-cache@v2 + with: + shared-key: build-test # Separate build step for easier identification of failures and timings. - name: Build tests for coverage diff --git a/.github/workflows/slowtest.yaml b/.github/workflows/slowtest.yaml index cb436cabed..807d94b143 100644 --- a/.github/workflows/slowtest.yaml +++ b/.github/workflows/slowtest.yaml @@ -43,6 +43,8 @@ jobs: - name: Enable Rust Caching uses: Swatinem/rust-cache@v2 + with: + shared-key: build-test - name: Build # Build test binary with `testing` feature, which requires `hotshot_example` config diff --git a/.github/workflows/test-demo-native-marketplace.yml b/.github/workflows/test-demo-native-marketplace.yml index e5ff441ed6..085966b8a2 100644 --- a/.github/workflows/test-demo-native-marketplace.yml +++ b/.github/workflows/test-demo-native-marketplace.yml @@ -42,6 +42,8 @@ jobs: - name: Enable Rust Caching uses: Swatinem/rust-cache@v2 + with: + shared-key: build-test - name: Build run: cargo build --locked --release diff --git a/.github/workflows/test-demo-native.yml b/.github/workflows/test-demo-native.yml index 51d1137ad7..360f1379dd 100644 --- a/.github/workflows/test-demo-native.yml +++ b/.github/workflows/test-demo-native.yml @@ -42,6 +42,8 @@ jobs: - name: Enable Rust Caching uses: Swatinem/rust-cache@v2 + with: + shared-key: build-test - name: Build run: cargo build --locked --release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06430d0b1e..2ce6f922fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,6 +44,8 @@ jobs: - name: Enable Rust Caching uses: Swatinem/rust-cache@v2 + with: + shared-key: build-test - name: Build # Build test binary with `testing` feature, which requires `hotshot_example` config