Skip to content

Commit

Permalink
fix: use cargo cache in unit tests action (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov authored Nov 27, 2024
1 parent 5fb4f11 commit fb3b586
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/cargo-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ runs:
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cargo-cache"
shared-key: "rust-cargo-cache-${{ runner.os }}-${{ runner.arch }}"
save-if: ${{ github.ref == 'refs/heads/main' }}


- name: Cargo deny
uses: EmbarkStudios/cargo-deny-action@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/rust-unit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ runs:
rustup target add ${{ inputs.target }}
echo "target=--target ${{ inputs.target }}" >> "${GITHUB_OUTPUT}"
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cargo-cache-${{ runner.os }}-${{ runner.arch }}"
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Prepare test env
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}
run: |
Expand Down

0 comments on commit fb3b586

Please sign in to comment.