Skip to content

Commit 6fa9bb4

Browse files
authored
Update wheels.yml
1 parent 0cf64ae commit 6fa9bb4

File tree

1 file changed

+22
-52
lines changed

1 file changed

+22
-52
lines changed

.github/workflows/wheels.yml

Lines changed: 22 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,38 @@
11
name: Build Wheels
2+
23
on:
3-
workflow_dispatch:
44
push:
5+
branches:
6+
- main # Or your main branch name
7+
pull_request:
58
branches:
69
- main
710

811
jobs:
912
build_wheels:
10-
name: Build wheels on ${{ matrix.os }}-${{ matrix.arch }}
1113
runs-on: ${{ matrix.os }}
1214
strategy:
1315
matrix:
14-
os: [ubuntu-24.04, ubuntu-22.04, macos-15]
15-
arch: [x86_64]
16-
include:
17-
- os: ubuntu-24.04-arm
18-
arch: aarch64
19-
- os: ubuntu-22.04-arm
20-
arch: aarch64
21-
- os: macos-15
22-
arch: arm64
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
18+
2319
steps:
24-
- name: Check out repository code
25-
uses: actions/checkout@v4
26-
with:
27-
submodules: 'recursive'
20+
- uses: actions/checkout@v3
2821

29-
- name: Build wheels
30-
uses: pypa/cibuildwheel@v2.22.0
31-
env:
32-
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
33-
OMPL_BUILD_ARCH: ${{ matrix.arch }}
34-
# NOTE: Many combinations of OS, arch, and Python version can be built
35-
# depending on your patience. For example:
36-
CIBW_BUILD: cp3{10,11,12,13}-macosx_{x86_64,arm64} cp3{10,11,12,13}-manylinux_x86_64
37-
CIBW_BUILD_VERBOSITY: 1
38-
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET="14.0"
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
3926

40-
- uses: actions/upload-artifact@v4
41-
with:
42-
name: wheels-${{ matrix.os }}-${{ matrix.arch }}
43-
path: wheelhouse
27+
- name: Install cibuildwheel
28+
run: pip install cibuildwheel
4429

45-
prerelease:
46-
if: github.ref == 'refs/heads/main'
47-
runs-on: ubuntu-latest
48-
concurrency:
49-
group: push-${{ github.ref_name }}-prerelease
50-
cancel-in-progress: true
51-
needs: [build_wheels]
52-
steps:
53-
- uses: actions/download-artifact@v4
54-
with:
55-
path: wheelhouse
56-
pattern: wheels-*
57-
merge-multiple: true
30+
- name: Build wheels
31+
run: cibuildwheel --output-dir wheelhouse
5832

59-
- name: GitHub release
60-
uses: ncipollo/release-action@v1.14.0
61-
with:
62-
prerelease: true
63-
tag: "prerelease"
64-
name: "Development Build"
65-
allowUpdates: true
66-
removeArtifacts: true
67-
replacesArtifacts: true
68-
artifacts: "wheelhouse/*"
33+
- name: Upload wheels
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: wheels
37+
path: wheelhouse
38+
if-no-files-found: error # Fail if no wheels were built.

0 commit comments

Comments
 (0)