diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 92bda4b7..90981fb8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,6 +22,15 @@ jobs: profile: minimal toolchain: stable override: true + - name: Set up cargo cache + uses: actions/cache@v3 + continue-on-error: false + with: + path: | + ~/.cargo + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- - uses: abelfodil/protoc-action@v1 with: protoc-version: '3.19.4' @@ -45,8 +54,6 @@ jobs: - uses: supercharge/redis-github-action@1.1.0 with: redis-version: 5 - # Nightly is required for code coverage with doctests - # https://github.com/taiki-e/cargo-llvm-cov/issues/2 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -77,6 +84,7 @@ jobs: args: --all -- --check clippy: + needs: check name: Clippy runs-on: ubuntu-latest steps: @@ -96,6 +104,7 @@ jobs: args: --all-features --all-targets -- -D warnings bench: + needs: check name: Bench runs-on: ubuntu-latest steps: