Skip to content

Commit

Permalink
Bazel Cache (#1787)
Browse files Browse the repository at this point in the history
* Update enzyme-bazel.yml

* Update enzyme-bazel.yml

* Update enzyme-bazel.yml

* Update enzyme-bazel.yml
  • Loading branch information
tgymnich authored Mar 9, 2024
1 parent b37be4a commit 73d862a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/enzyme-bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,21 @@ jobs:
repository: 'llvm/llvm-project'
path: 'llvm-project'

- name: Cache Bazel
uses: actions/cache@v4
with:
path: |
~/.cache/bazel
~/.cache/bazel-disk-cache
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-
- name: Build
run: |
cd enzyme
bazel build :EnzymeStatic :enzymemlir-opt
bazel build --disk_cache=~/.cache/bazel-disk-cache :EnzymeStatic :enzymemlir-opt
- name: Test
run: |
cd enzyme
bazel test --test_output=errors ...
bazel test --disk_cache=~/.cache/bazel-disk-cache --test_output=errors ...

0 comments on commit 73d862a

Please sign in to comment.