Skip to content

Commit

Permalink
action: reuse rust cache by shared-key
Browse files Browse the repository at this point in the history
Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
  • Loading branch information
Desiki-high committed May 6, 2023
1 parent 7a48992 commit 0fb1495
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
IMAGE: wordpress
TAG: 6.1.1

Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
uses: Swatinem/rust-cache@v2.2.0
with:
cache-on-failure: true
shared-key: nydus-build-ubuntu-latest
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
uses: Swatinem/rust-cache@v2.2.0
with:
cache-on-failure: true
shared-key: nydus-build-ubuntu-latest
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
shared-key: nydus-build-ubuntu-latest
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand All @@ -112,6 +113,7 @@ jobs:
uses: Swatinem/rust-cache@v2.2.0
with:
cache-on-failure: true
shared-key: nydus-build-ubuntu-latest
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand Down Expand Up @@ -603,6 +605,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
shared-key: nydus-build-ubuntu-latest
- name: Install cargo nextest
uses: taiki-e/install-action@nextest
- name: Unit Test
Expand Down

0 comments on commit 0fb1495

Please sign in to comment.