-
Notifications
You must be signed in to change notification settings - Fork 26
61 lines (50 loc) · 1.38 KB
/
wheel.yaml
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
name: Python wheel
on:
push:
tags:
- '*'
jobs:
build_wheel:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-13, macos-14, windows-2022]
name: ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Xcode version
if: runner.os == 'macOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_WINDOWS: auto64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_SKIP: "*-musllinux* pp*"
CIBW_TEST_COMMAND: "pytest {project}/modules"
CIBW_TEST_REQUIRES: pytest
MACOSX_DEPLOYMENT_TARGET: 11.00
CIBW_BUILD_VERBOSITY: 2
- uses: actions/upload-artifact@v4
with:
name: wheels-${{matrix.os}}
path: ./wheelhouse/*.whl
upload_pypi:
name: Upload wheels to PyPI
runs-on: ubuntu-latest
needs: [build_wheel]
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
path: dist
- name: Deploy wheel
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}