20
20
name : Build wheels on Linux
21
21
runs-on : ubuntu-latest
22
22
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
24
31
25
32
- name : Set up Python
26
33
uses : actions/setup-python@v4
@@ -30,36 +37,17 @@ jobs:
30
37
- name : Install cibuildwheel
31
38
run : pip install cibuildwheel==3.1.4
32
39
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
-
43
40
- name : Build wheels
44
41
env :
45
42
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"
46
43
CIBW_ENABLE : cpython-prerelease cpython-freethreading
47
44
CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
48
45
CIBW_BUILD_VERBOSITY : " 3"
49
46
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
58
49
CIBW_ENVIRONMENT : >
59
- CC="ccache gcc"
60
- CXX="ccache g++"
61
50
LDFLAGS="-fopenmp"
62
- CCACHE_DIR=/host/home/runner/.ccache
63
51
CIBW_REPAIR_WHEEL_COMMAND : |
64
52
auditwheel repair -w {dest_dir} --plat manylinux_2_28_x86_64 {wheel}
65
53
CIBW_TEST_COMMAND : |
74
62
python -m cibuildwheel --output-dir wheelhouse
75
63
working-directory : ./quaddtype
76
64
77
- - name : Show ccache stats
78
- run : ccache -s
79
-
80
65
- uses : actions/upload-artifact@v4
81
66
with :
82
67
path : ./quaddtype/wheelhouse/*.whl
0 commit comments