forked from ompl/ompl
-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (91 loc) · 2.63 KB
/
wheels.yaml
File metadata and controls
97 lines (91 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build Wheels
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
pybuilds: cp3{10,11,12,13}-manylinux_x86_64
arch: x86_64
id: linux_x86_64
- os: ubuntu-24.04-arm
pybuilds: cp3{10,11,12,13}-manylinux_aarch64
arch: aarch64
id: linux_arm64
- os: macos-13
pybuilds: cp3{10,11,12,13}-macosx_x86_64
arch: x86_64
id: macos_x86
- os: macos-15
pybuilds: cp3{10,11,12,13}-macosx_arm64
arch: arm64
id: macos_arm64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build wheels
uses: pypa/cibuildwheel@v2.23.2
with:
package-dir: py-bindings
env:
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
OMPL_BUILD_ARCH: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.pybuilds }}
CIBW_SKIP: "cp*-manylinux_i686 cp*-musllinux* cp*-win32"
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET="15.0"
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.arch }}
path: wheelhouse
prerelease:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
concurrency:
group: push-${{ github.ref_name }}-prerelease
cancel-in-progress: true
needs: [build_wheels]
steps:
- uses: actions/download-artifact@v4
with:
path: wheelhouse
pattern: wheels-*
merge-multiple: true
- name: GitHub release
uses: ncipollo/release-action@v1.16.0
with:
prerelease: true
tag: "prerelease"
name: "Development Build"
allowUpdates: true
removeArtifacts: true
replacesArtifacts: true
artifacts: "wheelhouse/*"
publish_pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: build_wheels
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download wheels artifact
uses: actions/download-artifact@v4
with:
path: wheelhouse
pattern: wheels-*
merge-multiple: true
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
packages: wheelhouse/*.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}