Skip to content

Commit

Permalink
Add ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsokol committed Oct 23, 2024
1 parent 4dae35a commit 3059974
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
ref: '4091bc61e315f187829dca877dd908a07ba9cb91' # Latest commit as of 2024-10-17
path: 'llvm-project'

- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.os }}-${{ matrix.python }}
max-size: "1G"
verbose: 2
variant: ccache

- name: Setup env
uses: mamba-org/setup-micromamba@v2
with:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
"-DMLIR_ENABLE_BINDINGS_PYTHON=ON",
f"-DPython3_EXECUTABLE={PYTHON_EXECUTABLE}",
"-DLLVM_INSTALL_UTILS=ON",
"-DLLVM_CCACHE_BUILD=ON",
]

subprocess.run(
Expand Down

0 comments on commit 3059974

Please sign in to comment.