Skip to content

Commit

Permalink
dont rebuild on cache hit
Browse files Browse the repository at this point in the history
  • Loading branch information
TabulateJarl8 committed Nov 18, 2024
1 parent f7870d7 commit 8285183
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/check_duplicates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ jobs:
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
tests/checkduplicates/target/release/
key: ${{ runner.os }}-cargo-${{ hashFiles('tests/checkduplicates/Cargo.lock', 'tests/checkduplicates/Cargo.toml', 'tests/checkduplicates/src/**') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build checkduplicates test
if: steps.cache.outputs.cache-hit != 'true'
run: |
cd tests/checkduplicates
cargo build --release
- name: Check for duplicate facts
run: |
cd tests/checkduplicates
cargo run --release
./target/release/checkduplicates

0 comments on commit 8285183

Please sign in to comment.