Skip to content

Commit 4443414

Browse files
committed
ci: add ccache for riscv64 wheel builds
Install and enable ccache inside the manylinux container to speed up subsequent C/C++ compilation. First build populates the cache, later builds benefit from cached object files. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent 40c8ab0 commit 4443414

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ jobs:
116116
run: python3 -m cibuildwheel --output-dir wheelhouse
117117
env:
118118
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
119+
CIBW_ENVIRONMENT: "CC='ccache gcc' CXX='ccache g++'"
120+
CIBW_BEFORE_ALL: "yum install -y ccache || apt-get install -y ccache || true"
119121

120122
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
121123
with:

0 commit comments

Comments
 (0)