-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.29 KB
/
wheels.yml
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
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
# os: [windows-2019]
# os: [ubuntu-20.04, windows-2019, macOS-10.15]
steps:
- uses: actions/checkout@v3
# Used to host cibuildwheel
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel twine virtualenv numpy
- name: Build wheels
uses: pypa/cibuildwheel@v2.9.0
env:
CIBW_BUILD: 'cp39-* cp310-* cp311*'
CIBW_SKIP: 'pp* *686* *-musllinux_*'
CIBW_ARCHS_MACOS: 'x86_64 arm64'
#run: |
# # python setup.py build_ext
# python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload wheels
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINETOKEN }}
run: |
echo $TWINE_USERNAME
echo $TWINE_PASSWORD
python -m pip install -U twine virtualenv
twine upload --skip-existing wheelhouse/*.whl
continue-on-error: true