Skip to content

Commit

Permalink
Check ccache cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsokol committed Oct 30, 2024
1 parent 412117b commit 7d1a5f4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Wheel

on:
schedule:
pull_request:
branches:
- main # NOTE: to remove
push:
branches:
- main # NOTE: to remove
# At 09:00 on Monday. (see https://crontab.guru)
- cron: '0 9 * * 1'

defaults:
run:
Expand Down
15 changes: 5 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,12 @@ requires = [

[tool.cibuildwheel]
build-verbosity = 1
test-requires = [
"pytest",
"pytest-cov",
"PyYAML",
"scipy",
"sparse@git+https://github.com/pydata/sparse@updated-llvm-nightly-test"
]
test-requires = ["pytest", "pytest-cov", "PyYAML", "scipy"]
before-test = "pip install --no-deps sparse@git+https://github.com/pydata/sparse@updated-llvm-nightly-test"
test-command = "SPARSE_BACKEND=MLIR pytest --pyargs sparse.mlir_backend"

[tool.cibuildwheel.linux]
build = "cp310-* cp311-* cp312-*"
build = "cp310-* cp311-* cp312-* cp313-*"
skip = ["*-manylinux_i686", "*-musllinux*"]
environment = { PATH = "/usr/lib/ccache:/usr/lib64/ccache:/usr/lib/ccache/bin:$PATH" }
before-build = [
Expand All @@ -31,7 +26,7 @@ before-build = [
environment-pass = ["HOST_CCACHE_DIR"]

[tool.cibuildwheel.macos]
build = "cp310-* cp311-* cp312-*"
build = "cp310-* cp311-* cp312-* cp313-*"
environment = { PATH = "/usr/local/opt/ccache/libexec:$PATH" }
before-build = [
"pip install -r {project}/Finch-mlir/requirements/requirements.txt",
Expand All @@ -41,7 +36,7 @@ repair-wheel-command = [
]

[tool.cibuildwheel.windows]
build = "cp310-* cp311-* cp312-*"
build = "cp310-* cp311-* cp312-* cp313-*"
before-build = [
"pip install delvewheel",
"pip install -r {project}/Finch-mlir/requirements/requirements.txt",
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ 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",
# "-DLLVM_CCACHE_BUILD=ON",
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_PLATFORM_NO_VERSIONED_SONAME=ON",
f"-DCMAKE_MAKE_PROGRAM:FILEPATH={ninja_executable_path}",
Expand Down

0 comments on commit 7d1a5f4

Please sign in to comment.