Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action: update rust-cache and setup-go version #1498

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Desiki-high marked this conversation as resolved.
Show resolved Hide resolved
- 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
19 changes: 12 additions & 7 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ 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
save-if: ${{ github.ref == 'refs/heads/master' }}
Desiki-high marked this conversation as resolved.
Show resolved Hide resolved
- name: Build Nydus
run: |
rustup component add rustfmt clippy
Expand All @@ -77,10 +78,11 @@ 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 }}
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: build
run: |
if [[ "${{matrix.arch}}" == "amd64" ]]; then
Expand Down Expand Up @@ -166,10 +168,11 @@ 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
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install cargo nextest
uses: taiki-e/install-action@nextest
- name: Fscache Setup
Expand All @@ -187,9 +190,11 @@ 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
shared-key: Linux-cargo-amd64
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Fscache Setup
Expand Down