Skip to content

Commit

Permalink
chore: Use more stable cache hash
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Al-Istannen committed Apr 20, 2024
1 parent 7bbe517 commit 3bb4fd6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/enzyme-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,19 @@ jobs:
with:
path: build/build/x86_64-unknown-linux-gnu/enzyme
key: ${{ matrix.os }}-enzyme-${{ steps.enzyme-commit.outputs.HEAD }}
- name: Cache random garbage
- name: Cache bootstrap artifacts
uses: actions/cache@v4
with:
path: |
build/build/x86_64-unknown-linux-gnu/stage0-rustc/
build/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/
build/build/x86_64-unknown-linux-gnu/stage0-tools/
build/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/
key: random-cache-${{ runner.os }}-${{ github.run_id }}
# Approximate stable hash. It doesn't matter too much when this goes out of sync as it just caches
# some stage0/stage1 dependencies and stdlibs which *hopefully* are hash-keyed.
key: enzyme-rust-bootstrap-${{ runner.os }}-${{ hashFiles('src/**/Cargo.lock') }}
restore-keys: |
random-cache-${{ runner.os }}
enzyme-rust-bootstrap-${{ runner.os }}
- name: Build
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
Expand Down

0 comments on commit 3bb4fd6

Please sign in to comment.