forked from pmorissette/bt
-
Notifications
You must be signed in to change notification settings - Fork 0
118 lines (99 loc) · 3.02 KB
/
deploy.yml
File metadata and controls
118 lines (99 loc) · 3.02 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: Deploy
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- python-version: "3.10"
cibuildwheel: "cp10"
- python-version: "3.11"
cibuildwheel: "cp311"
- python-version: "3.12"
cibuildwheel: "cp312"
- python-version: "3.13"
cibuildwheel: "cp313"
- python-version: "3.14"
cibuildwheel: "cp314"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make develop
python -m pip install -U wheel twine setuptools
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.23.2
- name: Python Wheel Steps (Linux - cibuildwheel)
run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_BUILD_VERBOSITY: 3
if: ${{ runner.os == 'Linux' }}
- name: Python Build Steps (Macos)
run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_BUILD_VERBOSITY: 3
if: ${{ matrix.os == 'macos-latest' }}
- name: Python Build Steps (Windows)
run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "${{ matrix.cibuildwheel }}-win_amd64"
if: ${{ matrix.os == 'windows-latest' }}
- name: Check Wheels
run: twine check dist/*
- name: Upload Wheel
uses: actions/upload-artifact@v7
with:
name: wheel-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}
path: dist/*.whl
# - name: Publish distribution 📦 to PyPI
# if: ${{ startsWith(github.ref, 'refs/tags') && matrix.os != 'ubuntu-latest' }}
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_UN }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PW }}
# run: make upload
build_sdist:
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- '3.10'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make develop
- name: Python SDist Steps
run: python setup.py sdist
- name: Check sdist
run: twine check dist/*.tar.gz
- name: Upload SDist
uses: actions/upload-artifact@v7
with:
name: sdist
path: dist/*.tar.gz