Skip to content

Commit

Permalink
better use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
wuan committed Nov 8, 2024
1 parent b1af404 commit b8ac5bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Install Rust
run: rustup update ${{ env.toolchain }} && rustup default ${{ env.toolchain }}

- name: Install Cargo Tarpaulin
run: cargo install cargo-tarpaulin

- name: Cache cargo registry
uses: actions/cache@v3
with:
Expand All @@ -45,6 +39,12 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Install Rust
run: rustup update ${{ env.toolchain }} && rustup default ${{ env.toolchain }}

- name: Install Cargo Tarpaulin
run: cargo install cargo-tarpaulin

- name: Build
run: cargo build --verbose

Expand Down

0 comments on commit b8ac5bd

Please sign in to comment.