Skip to content

Commit 83fa05c

Browse files
committed
CI: Update cibuildwheel
1 parent 2421e57 commit 83fa05c

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/wheels_faster.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build_wheels:
1010
name: Build wheel for cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}
1111
runs-on: ${{ matrix.os }}
12+
env:
13+
CIBW_HOST_PYTHON: '3.13'
1214
strategy:
1315
fail-fast: false
1416
matrix:
@@ -50,14 +52,14 @@ jobs:
5052
- uses: actions/setup-python@v6
5153
name: Install Python host for cibuildwheel
5254
with:
53-
python-version: ${{ matrix.python }}
55+
python-version: ${{ env.CIBW_HOST_PYTHON }}
5456

5557
- name: Set up MSVC x64
5658
if: matrix.platform_id == 'win_amd64'
5759
uses: ilammy/msvc-dev-cmd@v1
5860

5961
- name: Install cibuildwheel
60-
run: python -m pip install cibuildwheel==2.23.3 setuptools toml
62+
run: python -m pip install cibuildwheel==4.1.0 setuptools toml
6163

6264
- name: Get package name and version (Linux / Mac)
6365
if: ${{ ! startsWith(matrix.os, 'windows-') }}
@@ -96,19 +98,9 @@ jobs:
9698
mkdir -p "${cache_dir}"
9799
echo "CIBW_CACHE_PATH=${cache_dir}" >> "${GITHUB_ENV}"
98100
99-
- name: Download virtualenv.pyz for cibuildwheel to cache dir (macOS / Windows)
100-
if: ${{ startsWith(matrix.os, 'macos-') || startsWith(matrix.os, 'windows-') }}
101-
shell: bash
102-
run: |
103-
set -euxo pipefail
104-
curl -L --retry 5 --retry-delay 5 \
105-
-o "${CIBW_CACHE_PATH}/virtualenv-20.30.0.pyz" \
106-
https://bootstrap.pypa.io/virtualenv/${{ matrix.python }}/virtualenv.pyz
107-
108101
- name: Build wheels
109102
env:
110-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
111-
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
103+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
112104
CIBW_BUILD: cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}
113105
CIBW_TEST_SKIP: "cp*" # We will test during install and test step
114106

@@ -138,6 +130,11 @@ jobs:
138130
139131
run: python -m cibuildwheel --output-dir wheelhouse/cp${{ matrix.cibw_python }}-${{matrix.platform_id }}
140132

133+
- uses: actions/setup-python@v6
134+
name: Install Python for wheel testing
135+
with:
136+
python-version: ${{ matrix.python }}
137+
141138
- name: Install and test (Linux / Mac)
142139
if: ${{ ! startsWith(matrix.os, 'windows-') }}
143140
run: |

0 commit comments

Comments
 (0)