|
1 | 1 | name: Build wheels
|
2 | 2 |
|
3 |
| -on: [push,release,pull_request] |
| 3 | +on: [push,release,workflow_dispatch] |
4 | 4 |
|
5 | 5 | jobs:
|
6 | 6 | build_wheels:
|
7 | 7 | name: Build wheels on ${{ matrix.os }}
|
8 | 8 | runs-on: ${{ matrix.os }}
|
9 | 9 | strategy:
|
10 | 10 | matrix:
|
11 |
| - os: [ubuntu-latest, macos-13, macos-14, windows-latest] |
| 11 | + os: [ubuntu-latest, macos-latest, windows-latest] |
12 | 12 |
|
13 | 13 | steps:
|
14 | 14 | - 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" |
18 | 39 |
|
19 | 40 | - uses: actions/upload-artifact@v4
|
20 | 41 | with:
|
|
0 commit comments