diff --git a/.github/actions/build_debug/action.yml b/.github/actions/build_debug/action.yml index f5f3cfb0c8f0..fbc402032822 100644 --- a/.github/actions/build_debug/action.yml +++ b/.github/actions/build_debug/action.yml @@ -21,7 +21,10 @@ runs: target: ${{ matrix.config.target }} components: rustfmt, clippy + # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 + with: + sharedKey: debug-v1 - uses: actions-rs/cargo@v1 with: diff --git a/.github/actions/build_release/action.yml b/.github/actions/build_release/action.yml index 7e0c98120845..e7eb4fe55ac4 100644 --- a/.github/actions/build_release/action.yml +++ b/.github/actions/build_release/action.yml @@ -21,7 +21,10 @@ runs: target: ${{ matrix.config.target }} components: rustfmt, clippy + # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 + with: + sharedKey: release-v1 - name: Build Databend uses: actions-rs/cargo@v1 diff --git a/.github/actions/check/action.yml b/.github/actions/check/action.yml index 52c40deaeecb..208dcbbbc42e 100644 --- a/.github/actions/check/action.yml +++ b/.github/actions/check/action.yml @@ -20,7 +20,10 @@ runs: with: components: rustfmt, clippy + # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 + with: + sharedKey: base-v1 - name: Format uses: actions-rs/cargo@v1 diff --git a/.github/actions/test_stateful_standalone/action.yml b/.github/actions/test_stateful_standalone/action.yml index 600e2914dcee..c8c703151e9d 100644 --- a/.github/actions/test_stateful_standalone/action.yml +++ b/.github/actions/test_stateful_standalone/action.yml @@ -12,7 +12,10 @@ runs: with: target: ${{ matrix.config.target }} + # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 + with: + sharedKey: stateful-v1 - uses: actions/download-artifact@v2 with: diff --git a/.github/actions/test_stateless_cluster/action.yml b/.github/actions/test_stateless_cluster/action.yml index c986ec4f24b4..f829a84e5e46 100644 --- a/.github/actions/test_stateless_cluster/action.yml +++ b/.github/actions/test_stateless_cluster/action.yml @@ -12,7 +12,10 @@ runs: with: target: ${{ matrix.config.target }} + # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 + with: + sharedKey: stateless-v1 - uses: actions/download-artifact@v2 with: diff --git a/.github/actions/test_stateless_standalone/action.yml b/.github/actions/test_stateless_standalone/action.yml index 55e66535a00f..0f781611b27d 100644 --- a/.github/actions/test_stateless_standalone/action.yml +++ b/.github/actions/test_stateless_standalone/action.yml @@ -13,7 +13,10 @@ runs: toolchain: ${{ matrix.config.toolchain }} target: ${{ matrix.config.target }} + # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 + with: + sharedKey: stateless-v1 - uses: actions/download-artifact@v2 with: diff --git a/.github/actions/test_unit/action.yml b/.github/actions/test_unit/action.yml index 0d151447b41b..f91eebeed3a0 100644 --- a/.github/actions/test_unit/action.yml +++ b/.github/actions/test_unit/action.yml @@ -26,7 +26,10 @@ runs: target: ${{ matrix.config.target }} components: rustfmt, clippy + # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 + with: + sharedKey: unit-v1 - name: Test uses: actions-rs/cargo@v1