Skip to content

Commit

Permalink
action: update rust-cache verison and share caches
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 Nov 30, 2023
1 parent f5001bb commit 6ecfbc3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
shared-key: nydus-build
shared-key: Linux-cargo-amd64
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
shared-key: nydus-build
shared-key: Linux-cargo-amd64
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Cache cargo
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
key: ${{ runner.os }}-cargo-${{ matrix.arch }}
shared-key: ${{ runner.os }}-cargo-${{ matrix.arch }}
- name: Build nydus-rs
run: |
declare -A rust_target_map=( ["amd64"]="x86_64-unknown-linux-musl" ["arm64"]="aarch64-unknown-linux-musl" ["ppc64le"]="powerpc64le-unknown-linux-gnu" ["riscv64"]="riscv64gc-unknown-linux-gnu")
Expand Down Expand Up @@ -55,10 +55,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Cache cargo
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
key: ${{ runner.os }}-cargo-${{ matrix.arch }}
shared-key: ${{ runner.os }}-cargo-${{ matrix.arch }}
- name: build
run: |
if [[ "${{matrix.arch}}" == "amd64" ]]; then
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
shared-key: nydus-build
shared-key: Linux-cargo-amd64
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand All @@ -77,10 +77,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Cache cargo
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
key: ${{ runner.os }}-cargo-${{ matrix.arch }}
shared-key: ${{ runner.os }}-cargo-${{ matrix.arch }}
- name: build
run: |
if [[ "${{matrix.arch}}" == "amd64" ]]; then
Expand Down Expand Up @@ -166,10 +166,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
shared-key: nydus-build
shared-key: Linux-cargo-amd64
- name: Install cargo nextest
uses: taiki-e/install-action@nextest
- name: Fscache Setup
Expand All @@ -187,7 +187,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/rust-cache@v2.2.0
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: true
- name: Install cargo-llvm-cov
Expand Down

0 comments on commit 6ecfbc3

Please sign in to comment.