Skip to content

Commit 39f90a8

Browse files
Update pypi.yml
1 parent 2766118 commit 39f90a8

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/pypi.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
11
name: Build wheels
22

3-
on: [push,release,pull_request]
3+
on: [push,release,workflow_dispatch]
44

55
jobs:
66
build_wheels:
77
name: Build wheels on ${{ matrix.os }}
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
11+
os: [ubuntu-latest, macos-latest, windows-latest]
1212

1313
steps:
1414
- uses: actions/checkout@v4
15-
16-
- name: Build wheels
17-
uses: pypa/cibuildwheel@v2.19.1
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: 3.x
18+
- name: Install cibuildwheel
19+
run: python -m pip install cibuildwheel==2.19.1
20+
# - name: Build wheels
21+
# uses: pypa/cibuildwheel@v2.16.2
22+
env:
23+
# Disable building PyPy wheels on all platforms
24+
CIBW_SKIP: 'pp*'
25+
CIBW_ENVIRONMENT_WINDOWS: "CFLAGS='-lquadmath'"
26+
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
27+
CIBW_ARCHS: 'auto64'
28+
CIBW_BEFORE_BUILD_WINDOWS: "choco install ninja"
29+
CIBW_BEFORE_BUILD_MACOS: "brew install ninja gcc && brew reinstall gcc"
30+
# CIBW_BEFORE_BUILD_LINUX: "apt-get install -y ninja-build"
31+
CIBW_BEFORE_BUILD: "pip install numpy meson-python ninja setuptools build"
32+
# CIBW_TEST_REQUIRES: pytest
33+
# CIBW_TEST_COMMAND: "pytest {project}/gospl/tests"
34+
# ...
35+
# with:
36+
# package-dir: .
37+
# output-dir: wheelhouse
38+
# config-file: "{package}/pyproject.toml"
1839

1940
- uses: actions/upload-artifact@v4
2041
with:

0 commit comments

Comments
 (0)