Skip to content

Commit

Permalink
ci: rust cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Oct 10, 2024
1 parent 2530a01 commit 0ba09d7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: just
Expand All @@ -48,12 +49,11 @@ jobs:
- run: cargo install --path crates/s3s-fs --features binary

cross-test:
needs: skip-check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toolchain:
- stable
os:
- ubuntu-latest
- windows-latest
Expand All @@ -62,8 +62,10 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --all-features
toolchain: stable
- uses: Swatinem/rust-cache@v2
- if: needs.skip-check.outputs.should_skip != 'true'
run: cargo test --all-features

mint:
needs: skip-check
Expand All @@ -74,7 +76,8 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
toolchain: stable
- uses: Swatinem/rust-cache@v2
- run: docker pull minio/mint:edge
- run: docker pull minio/minio:latest
- run: cargo install --path crates/s3s-proxy
Expand Down

0 comments on commit 0ba09d7

Please sign in to comment.