Skip to content

Commit cd9ab57

Browse files
committed
[Build][CI] enable ccache for CIBW on Linux
1 parent 9a48282 commit cd9ab57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/dist.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ jobs:
124124
fetch-depth: 1
125125
submodules: recursive
126126

127-
# NB: CIBW builds wheels in containers on Linux
128-
- name: Setup ccache (macOS only)
129-
if: runner.os == 'macOS'
127+
- name: Setup ccache
130128
uses: hendrikmuhs/ccache-action@v1
131129
with:
132130
create-symlink: true

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ test-command = [
186186
]
187187

188188
[tool.cibuildwheel.linux]
189-
environment = { PYTHONDEVMODE = "1", PYTHONUNBUFFERED = "1", PATH = "/usr/local/cuda/bin:$PATH" }
189+
environment.PYTHONDEVMODE = "1"
190+
environment.PYTHONUNBUFFERED = "1"
191+
environment.PATH = "/usr/local/cuda/bin:/host/usr/lib/ccache:/host/usr/local/opt/ccache/libexec:$PATH"
190192
repair-wheel-command = [
191193
"auditwheel -v repair --exclude libtvm_ffi.so --exclude libcuda.so.1 --exclude '/usr/local/cuda*' -w {dest_dir} {wheel}",
192194
"pipx run abi3audit --verbose --strict {wheel}",

0 commit comments

Comments
 (0)