-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.08 KB
/
wheels.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
name: Build
on:
push:
tags:
- 'v*'
jobs:
build_wheels:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
cibw_arch: ['all']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install -U cibuildwheel==2.16.5
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: 'cp38-* cp39-* cp310-* cp311-*'
CIBW_SKIP: '*-musllinux_* *-manylinux_aarch64'
CIBW_ARCHS: ${{ matrix.cibw_arch }}
- uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.whl
upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_token }}
# repository_url: https://test.pypi.org/legacy/