mirror of
https://github.com/rust-unofficial/awesome-rust.git
synced 2024-10-30 12:16:08 -04:00
Generate random cache ids so we can re-run for improved results
This commit is contained in:
parent
9c7fcb5468
commit
3e00c49471
1 changed files with 4 additions and 1 deletions
5
.github/workflows/rust.yml
vendored
5
.github/workflows/rust.yml
vendored
|
@ -21,10 +21,13 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- id: Get random cache id
|
||||||
|
run: echo "CACHE_ID=$((RANDOM))" >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
- uses: pat-s/always-upload-cache@v2.1.3
|
- uses: pat-s/always-upload-cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: results/results.yaml
|
path: results/results.yaml
|
||||||
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.sha }}
|
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ env.CACHE_ID }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-
|
results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-
|
||||||
results-${{ hashFiles('Cargo.lock') }}-
|
results-${{ hashFiles('Cargo.lock') }}-
|
||||||
|
|
Loading…
Reference in a new issue