-
-
Notifications
You must be signed in to change notification settings - Fork 91
142 lines (128 loc) · 3.55 KB
/
wheel.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
on:
push:
pull_request:
schedule:
- cron: '30 13 * * *'
jobs:
linux:
strategy:
fail-fast: false
matrix:
image:
- 'manylinux2014_aarch64'
- 'musllinux_1_1_aarch64'
- 'musllinux_1_2_aarch64'
- 'manylinux2014_i686'
- 'musllinux_1_2_i686'
- 'manylinux2014_ppc64le'
- 'musllinux_1_2_ppc64le'
- 'manylinux2014_s390x'
- 'musllinux_1_2_s390x'
- 'manylinux2014_x86_64'
- 'musllinux_1_1_x86_64'
- 'musllinux_1_2_x86_64'
py:
- 'cp38-cp38'
- 'cp39-cp39'
- 'cp310-cp310'
- 'cp311-cp311'
- 'cp312-cp312'
- 'cp313-cp313'
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: ${{ endsWith(matrix.image, 'aarch64') || endsWith(matrix.image, 'ppc64le') || endsWith(matrix.image, 's390x') }}
uses: docker/setup-qemu-action@v3
- name: Build Wheel
run: |
docker run -e PYPATH=/opt/python/${{ matrix.py }} -e ZSTD_WARNINGS_AS_ERRORS=1 --rm -v `pwd`:/project quay.io/pypa/${{ matrix.image }} /project/ci/build-manylinux-wheel.sh
- name: Upload Wheel
uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.py }}-${{ matrix.image }}
path: dist
macos:
strategy:
fail-fast: false
matrix:
py:
- 'cp38'
- 'cp39'
- 'cp310'
- 'cp311'
- 'cp312'
- 'cp313'
arch:
- 'arm64'
- 'x86_64'
runs-on: 'macos-13'
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.py }}-*
CIBW_BUILD_VERBOSITY: '1'
CIBW_PRERELEASE_PYTHONS: '1'
ZSTD_WARNINGS_AS_ERRORS: '1'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
python -m pip install --require-hashes -r ci/requirements.macoswheels.txt
- name: Build Wheel
run: |
cibuildwheel --output-dir dist
- name: Upload Wheel
uses: actions/upload-artifact@v4
with:
name: macos-${{ matrix.py }}-${{ matrix.arch }}
path: dist
windows:
strategy:
fail-fast: false
matrix:
py:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
arch:
- 'x86'
- 'x64'
- 'arm64'
exclude:
- py: '3.8'
arch: 'arm64'
runs-on: 'windows-2022'
env:
ZSTD_WARNINGS_AS_ERRORS: '1'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.arch == 'arm64' && 'x64' || matrix.arch }}
- uses: actions/checkout@v4
- name: Build Wheel
if: matrix.arch != 'arm64'
run: |
python -m pip wheel -w dist .
- name: Build Wheel
if: matrix.arch == 'arm64'
shell: bash
run: |
python -m pip install cibuildwheel
export CIBW_ARCHS=ARM64
export CIBW_BUILD=cp$(echo ${{ matrix.py }} | tr -d .)-*
export CIBW_BUILD_VERBOSITY=1
cibuildwheel --output-dir dist --arch ARM64
- name: Upload Wheel
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.py }}-${{ matrix.arch }}
path: dist