Skip to content

Commit f0f7b8e

Browse files
Merge pull request #2099 from KLayout/pr-2083
Pr 2083
2 parents 9d4a578 + 1027265 commit f0f7b8e

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
mkdir -p $HOST_CCACHE_DIR
6767
- name: Build wheels (ARM)
6868
if: matrix.os == 'ubuntu-24.04-arm'
69-
uses: pypa/cibuildwheel@v2.23.3
69+
uses: pypa/cibuildwheel@v3.0.0
7070
env:
7171
# override the default CentOS “yum install … ccache” and drop ccache
7272
CIBW_BEFORE_ALL_LINUX: |
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: Build wheels (all other platforms)
8383
if: matrix.os != 'ubuntu-24.04-arm'
84-
uses: pypa/cibuildwheel@v2.23.3
84+
uses: pypa/cibuildwheel@v3.0.0
8585
env:
8686
CIBW_BUILD: ${{ matrix.cibuild }}
8787
CIBW_ARCHS_MACOS: ${{ matrix.macos-arch }}

ci-scripts/docker/docker_prepare.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ if [[ -f "/etc/centos-release" ]]; then
1111
[ $s -eq 0 ] || exit $s
1212

1313
if [[ -d "/usr/lib64/ccache" ]]; then
14-
ln -s /usr/bin/ccache /usr/lib64/ccache/c++
15-
ln -s /usr/bin/ccache /usr/lib64/ccache/cc
16-
ln -s /usr/bin/ccache /usr/lib64/ccache/gcc
17-
ln -s /usr/bin/ccache /usr/lib64/ccache/g++
14+
for comp in c++ cc gcc g++; do
15+
if ! [ -e /usr/lib64/ccache/$comp ]; then
16+
ln -s /usr/bin/ccache /usr/lib64/ccache/$comp
17+
fi
18+
done
1819
export PATH="/usr/lib64/ccache:$PATH"
1920
elif [[ -d "/usr/lib/ccache" ]]; then
20-
ln -s /usr/bin/ccache /usr/lib/ccache/c++
21-
ln -s /usr/bin/ccache /usr/lib/ccache/cc
22-
ln -s /usr/bin/ccache /usr/lib/ccache/gcc
23-
ln -s /usr/bin/ccache /usr/lib/ccache/g++
21+
for comp in c++ cc gcc g++; do
22+
if ! [ -e /usr/lib/ccache/$comp ]; then
23+
ln -s /usr/bin/ccache /usr/lib/ccache/$comp
24+
fi
25+
done
2426
export PATH="/usr/lib/ccache:$PATH"
2527
fi
2628

0 commit comments

Comments
 (0)