Skip to content

Commit 7f72775

Browse files
authored
python: Update to cibuildwheel 3.0 (#1999)
Includes an implicit update to manylinux_2_28 (i.e., for systems with a glibc version >=2.28). We now set the MacOS deployment target dynamically based on the runner image to avoid a warning on the MacOS Intel runner.
1 parent d9ed709 commit 7f72775

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/wheels.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ jobs:
4646
name: Install Python 3.12
4747
with:
4848
python-version: "3.12"
49-
- run: pip install --upgrade pip uv
49+
- name: Install the latest version of uv
50+
uses: astral-sh/setup-uv@v6
5051

5152
- name: Build wheels on ${{ matrix.os }} using cibuildwheel
52-
uses: pypa/cibuildwheel@v2.23.2
53+
uses: pypa/cibuildwheel@v3.0.0
5354
env:
5455
CIBW_BUILD: "cp310-* cp311-* cp312-*"
5556
CIBW_BUILD_FRONTEND: "build[uv]"
@@ -60,7 +61,7 @@ jobs:
6061
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin
6162
CIBW_TEST_COMMAND: python {project}/bindings/python/google_benchmark/example.py
6263
# unused by Bazel, but needed explicitly by delocate on MacOS.
63-
MACOSX_DEPLOYMENT_TARGET: "10.14"
64+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-13' && 10.14 || 11.0 }}
6465

6566
- name: Upload Google Benchmark ${{ matrix.os }} wheels
6667
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)