-
-
Notifications
You must be signed in to change notification settings - Fork 84
151 lines (135 loc) · 4.16 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
143
144
145
146
147
148
149
150
151
on:
push:
pull_request:
schedule:
- cron: '30 13 * * *'
jobs:
linux:
strategy:
fail-fast: false
matrix:
image:
- 'quay.io/pypa/manylinux2010_i686'
- 'quay.io/pypa/manylinux2010_x86_64'
- 'quay.io/pypa/manylinux2014_aarch64'
- 'quay.io/pypa/manylinux2014_i686'
- 'quay.io/pypa/manylinux2014_x86_64'
py:
- 'cp37-cp37m'
- 'cp38-cp38'
- 'cp39-cp39'
- 'cp310-cp310'
- 'cp311-cp311'
exclude:
# manylinux2010 dropped in Python 3.11.
- image: 'quay.io/pypa/manylinux2010_i686'
py: 'cp311-cp311'
- image: 'quay.io/pypa/manylinux2010_x86_64'
py: 'cp311-cp311'
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
if: ${{ matrix.image == 'quay.io/pypa/manylinux2014_aarch64' }}
uses: docker/setup-qemu-action@v1
- name: Build Wheel
run: |
docker run -e PYPATH=/opt/python/${{ matrix.py }} -e ZSTD_WARNINGS_AS_ERRORS=1 --rm -v `pwd`:/project ${{ matrix.image }} /project/ci/build-manylinux-wheel.sh
- name: Upload Wheel
uses: actions/upload-artifact@v2
with:
path: dist
macos:
strategy:
fail-fast: false
matrix:
py:
- 'cp37-*'
- 'cp38-*'
- 'cp39-*'
- 'cp310-*'
- 'cp311-*'
arch: ['x86_64']
include:
- py: 'cp38-*'
arch: 'arm64'
- py: 'cp39-*'
arch: 'arm64'
- py: 'cp310-*'
arch: 'arm64'
- py: 'cp311-*'
arch: 'arm64'
runs-on: 'macos-12'
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@v3
with:
python-version: '3.8'
if: ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
python -m pip install --require-hashes -r ci/requirements.macoswheels.txt
if: ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
- name: Install Dependencies
run: |
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/pip3 install --user --require-hashes -r ci/requirements.macoswheels.txt
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/pip3 install --user wheel
if: ${{ matrix.py == 'cp38-*' && matrix.arch == 'arm64' }}
- name: Build Wheel
run: |
cibuildwheel --output-dir dist
if: ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
- name: Build Wheel
run: |
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/python3 setup.py bdist_wheel
env:
_PYTHON_HOST_PLATFORM: 'macosx-11.0-arm64'
ARCHFLAGS: '-arch arm64'
MACOSX_DEPLOYMENT_TARGET: '11.0'
SDKROOT: '/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk'
if: ${{ matrix.py == 'cp38-*' && matrix.arch == 'arm64' }}
- name: Upload Wheel
uses: actions/upload-artifact@v2
with:
path: dist
windows:
strategy:
fail-fast: false
matrix:
py:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
arch:
- 'x86'
- 'x64'
runs-on: 'windows-2022'
env:
ZSTD_WARNINGS_AS_ERRORS: '1'
steps:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.arch }}
- uses: actions/checkout@v3
- name: Install Dependencies
shell: bash
run: |
python -m pip install --require-hashes -r ci/requirements.txt
- name: Build Wheel
run: |
python setup.py bdist_wheel
- name: Upload Wheel
uses: actions/upload-artifact@v2
with:
path: dist