|
9 | 9 | build_wheels: |
10 | 10 | name: Build wheel for cp${{ matrix.cibw_python }}-${{ matrix.platform_id }} |
11 | 11 | runs-on: ${{ matrix.os }} |
| 12 | + env: |
| 13 | + CIBW_HOST_PYTHON: '3.13' |
12 | 14 | strategy: |
13 | 15 | fail-fast: false |
14 | 16 | matrix: |
@@ -50,14 +52,14 @@ jobs: |
50 | 52 | - uses: actions/setup-python@v6 |
51 | 53 | name: Install Python host for cibuildwheel |
52 | 54 | with: |
53 | | - python-version: ${{ matrix.python }} |
| 55 | + python-version: ${{ env.CIBW_HOST_PYTHON }} |
54 | 56 |
|
55 | 57 | - name: Set up MSVC x64 |
56 | 58 | if: matrix.platform_id == 'win_amd64' |
57 | 59 | uses: ilammy/msvc-dev-cmd@v1 |
58 | 60 |
|
59 | 61 | - 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 |
61 | 63 |
|
62 | 64 | - name: Get package name and version (Linux / Mac) |
63 | 65 | if: ${{ ! startsWith(matrix.os, 'windows-') }} |
|
96 | 98 | mkdir -p "${cache_dir}" |
97 | 99 | echo "CIBW_CACHE_PATH=${cache_dir}" >> "${GITHUB_ENV}" |
98 | 100 |
|
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 | | -
|
108 | 101 | - name: Build wheels |
109 | 102 | env: |
110 | | - CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 |
111 | | - CIBW_MANYLINUX_I686_IMAGE: manylinux2014 |
| 103 | + CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 |
112 | 104 | CIBW_BUILD: cp${{ matrix.cibw_python }}-${{ matrix.platform_id }} |
113 | 105 | CIBW_TEST_SKIP: "cp*" # We will test during install and test step |
114 | 106 |
|
@@ -138,6 +130,11 @@ jobs: |
138 | 130 |
|
139 | 131 | run: python -m cibuildwheel --output-dir wheelhouse/cp${{ matrix.cibw_python }}-${{matrix.platform_id }} |
140 | 132 |
|
| 133 | + - uses: actions/setup-python@v6 |
| 134 | + name: Install Python for wheel testing |
| 135 | + with: |
| 136 | + python-version: ${{ matrix.python }} |
| 137 | + |
141 | 138 | - name: Install and test (Linux / Mac) |
142 | 139 | if: ${{ ! startsWith(matrix.os, 'windows-') }} |
143 | 140 | run: | |
|
0 commit comments