Skip to content

Commit 152162b

Browse files
committed
testing ccache action
1 parent 5e31e1d commit 152162b

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.github/workflows/build_wheels.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ jobs:
2020
name: Build wheels on Linux
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v3
24+
25+
- name: ccaches
26+
uses: hendrikmuhs/[email protected]
27+
with:
28+
create-symlink: true
29+
key: ${{ github.job }}-ubuntu-latest
30+
verbose: 2
2431

2532
- name: Set up Python
2633
uses: actions/setup-python@v4
@@ -30,36 +37,17 @@ jobs:
3037
- name: Install cibuildwheel
3138
run: pip install cibuildwheel==3.1.4
3239

33-
- name: Install ccache
34-
run: sudo apt-get install -y ccache
35-
36-
- name: Cache ccache
37-
uses: actions/cache@v4
38-
with:
39-
path: ~/.ccache
40-
key: ${{ runner.os }}-ccache-${{ hashFiles('quaddtype/meson.build', 'quaddtype/subprojects/**', 'quaddtype/numpy_quaddtype/src/**', 'quaddtype/pyproject.toml') }}
41-
restore-keys: ${{ runner.os }}-ccache-
42-
4340
- name: Build wheels
4441
env:
4542
CIBW_BUILD: "cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64 cp313t-manylinux_x86_64 cp314-manylinux_x86_64 cp314t-manylinux_x86_64"
4643
CIBW_ENABLE: cpython-prerelease cpython-freethreading
4744
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
4845
CIBW_BUILD_VERBOSITY: "3"
4946
CIBW_BEFORE_ALL: |
50-
yum install -y epel-release
51-
yum install -y ccache cmake gcc gcc-c++ make git pkgconfig
52-
export CCACHE_DIR=/host/home/runner/.ccache
53-
mkdir -p $CCACHE_DIR
54-
ccache -M 1G
55-
ccache -o compression=true
56-
ccache -z
57-
ccache -s
47+
yum update -y
48+
yum install -y cmake gcc gcc-c++ make git pkgconfig
5849
CIBW_ENVIRONMENT: >
59-
CC="ccache gcc"
60-
CXX="ccache g++"
6150
LDFLAGS="-fopenmp"
62-
CCACHE_DIR=/host/home/runner/.ccache
6351
CIBW_REPAIR_WHEEL_COMMAND: |
6452
auditwheel repair -w {dest_dir} --plat manylinux_2_28_x86_64 {wheel}
6553
CIBW_TEST_COMMAND: |
@@ -74,9 +62,6 @@ jobs:
7462
python -m cibuildwheel --output-dir wheelhouse
7563
working-directory: ./quaddtype
7664

77-
- name: Show ccache stats
78-
run: ccache -s
79-
8065
- uses: actions/upload-artifact@v4
8166
with:
8267
path: ./quaddtype/wheelhouse/*.whl

0 commit comments

Comments
 (0)