Skip to content

Commit

Permalink
ci: cache Enzyme and use rustbook@main
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown authored and ZuseZ4 committed Mar 29, 2024
1 parent ea3d213 commit 518390f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/enzyme-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ jobs:
with:
path: build/build/x86_64-unknown-linux-gnu/llvm
key: ${{ matrix.os }}-llvm-${{ steps.llvm-commit.outputs.HEAD }}
- name: Get Enzyme commit hash
id: enzyme-commit
run: echo "HEAD=$(git -C src/tools/enzyme rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Cache Enzyme
id: cache-enzyme
uses: actions/cache@v4
with:
path: build/build/x86_64-unknown-linux-gnu/enzyme
key: ${{ matrix.os }}-enzyme-${{ steps.enzyme-commit.outputs.HEAD }}
- name: Build
run: |
mkdir -p build
Expand All @@ -47,7 +56,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: EnzymeAD/rustbook
ref: mdbook-test
ref: main
path: rustbook
- name: test Enzyme/rustbook
working-directory: rustbook
Expand Down

0 comments on commit 518390f

Please sign in to comment.