-
Notifications
You must be signed in to change notification settings - Fork 200
38 lines (37 loc) · 1.07 KB
/
deploy_win_macos.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
name: PyPI win and macos deployer
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
# Build and deploy Windows AMD64, macOS x86 & macOS arm64 wheels
Matrix-build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Python 3.x
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD: "pip install setuptools wheel cython"
CIBW_ARCHS_WINDOWS: "AMD64"
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
# Does not fail at unsupported Python versions!
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
- name: Upload wheels
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
ls -l ./wheelhouse
pip install twine
twine upload --skip-existing ./wheelhouse/*.whl