forked from buckhx/QuadKey
-
Notifications
You must be signed in to change notification settings - Fork 7
76 lines (65 loc) · 1.89 KB
/
build-on-tag.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
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
name: Build sdist and bdist on Tag Pushed
on:
push:
tags:
- '*'
jobs:
build_wheels:
name: Build wheel ${{ matrix.python }}-${{ matrix.buildplat[1] }}
runs-on: ${{ matrix.buildplat[0] }}
strategy:
fail-fast: false
matrix:
buildplat:
- [ ubuntu-22.04, manylinux_x86_64 ]
- [ ubuntu-22.04, musllinux_x86_64 ]
- [ macos-13, macosx_x86_64 ]
- [ macos-14, macosx_arm64 ]
- [ windows-2019, win_amd64 ]
- [ windows-2019, win32 ]
python: [ "cp310","cp311", "cp312", "cp313" ]
steps:
- name: Checkout pyquadkey2
uses: actions/checkout@v4
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build Wheel
uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_FREE_THREADED_SUPPORT: True
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
- name: Upload Wheel
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl
- name: Publish Wheel
uses: softprops/action-gh-release@v2
with:
files: ./wheelhouse/*.whl
build_sdist:
name: Build sdist
runs-on: ubuntu-latest
steps:
- name: Checkout pyquadkey2
uses: actions/checkout@v4
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: build
run: |
python3 -m pip install build
python3 -m build --sdist
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: sdist
path: ./dist/*.tar.gz
- name: Publish Wheel
uses: softprops/action-gh-release@v2
with:
files: ./dist/*