Skip to content

Commit

Permalink
ci: optimize build caches (#649)
Browse files Browse the repository at this point in the history
Optimizes build times by fixing the use of the cache github action
  • Loading branch information
rafaelcr authored Oct 3, 2024
1 parent b0af36a commit a2965c2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
- name: Install and run cargo-tarpaulin
run: |
cargo install cargo-tarpaulin
cargo --version
cargo tarpaulin --out lcov --features redis_tests -- --test-threads=1
cargo tarpaulin --skip-clean --out lcov --features redis_tests -- --test-threads=1
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down Expand Up @@ -115,8 +114,8 @@ jobs:
with:
path: |
~/.cargo/
./target/${{ matrix.target }}/release/
key: ${{ runner.os }}-rust-${{ env.RUST_VERSION_HASH }}-cargo-${{ hashFiles('./Cargo.lock') }}
./target/
key: ${{ runner.os }}-rust-${{ env.RUST_VERSION_HASH }}-${{ matrix.target }}-cargo-${{ hashFiles('./Cargo.lock') }}

- name: Install wix (Windows)
if: matrix.os == 'windows-latest' && steps.cache-cargo.outputs.cache-hit != 'true'
Expand Down

0 comments on commit a2965c2

Please sign in to comment.