Skip to content

Commit 1b1e6fd

Browse files
committed
Switch to manual cibuildwheel execution to force venv and bypass rate limits
1 parent 0f7b07d commit 1b1e6fd

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

.github/workflows/publish.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,31 @@ on:
55
tags:
66
- 'v*'
77
workflow_dispatch:
8+
build_wheels:
9+
name: Build wheels on ${{ matrix.os }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
814

9-
jobs:
10-
build_wheels:
11-
name: Build wheels on ${{ matrix.os }}
12-
runs-on: ${{ matrix.os }}
13-
strategy:
14-
matrix:
15-
os: [ubuntu-latest, windows-latest, macos-latest]
16-
env:
17-
CIBW_VENV_TOOL: venv
18-
CIBW_VIRTUALENV_VERSION: ""
15+
steps:
16+
- uses: actions/checkout@v4
1917

20-
steps:
21-
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.10"
22+
23+
- name: Install cibuildwheel
24+
run: pip install cibuildwheel==2.21.3
2225

23-
- name: Build wheels
24-
uses: pypa/cibuildwheel@v2.21.3
25-
env:
26-
# Configure cibuildwheel
27-
CIBW_SKIP: "pp* *-musllinux*" # Skip PyPy and Musl Linux
28-
CIBW_ARCHS_MACOS: "x86_64 arm64" # Universal Mac support
29-
# Ensure dependencies are available
30-
CIBW_BEFORE_BUILD: "pip install pybind11"
26+
- name: Build wheels
27+
run: cibuildwheel --output-dir wheelhouse
28+
env:
29+
CIBW_VENV_TOOL: venv
30+
CIBW_SKIP: "pp* *-musllinux*"
31+
CIBW_ARCHS_MACOS: "x86_64 arm64"
32+
CIBW_BEFORE_BUILD: "pip install pybind11"
3133

3234
- uses: actions/upload-artifact@v4
3335
with:

0 commit comments

Comments
 (0)