Skip to content

Commit

Permalink
Merge pull request #3687 from PsiACE/reset-cache
Browse files Browse the repository at this point in the history
[ci] try to add sharedkey and resetkey
  • Loading branch information
sundy-li authored Dec 29, 2021
2 parents b712e6d + 836377c commit 1b6bf39
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/build_debug/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/build_release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/test_stateful_standalone/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/test_stateless_cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/test_stateless_standalone/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/test_unit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b6bf39

Please sign in to comment.