-
Notifications
You must be signed in to change notification settings - Fork 1
133 lines (110 loc) · 3.76 KB
/
wheels.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
name: Release
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
env:
cython: "0.29.28"
cibuildwheel: "2.11.3"
TWINE_NONINTERACTIVE: "1"
jobs:
wheel:
runs-on: ${{ matrix.os }}
env:
# MACOSX_DEPLOYMENT_TARGET: "10.9"
# CIBW_BUILD_VERBOSITY: "1"
# CIBW_BEFORE_ALL_MACOS: "bash tools/install_libzmq.sh"
# CIBW_BEFORE_ALL_LINUX: "bash tools/install_libzmq.sh"
CIBW_ENVIRONMENT_MACOS: ""
# CIBW_ENVIRONMENT_LINUX: >-
# CFLAGS=-Wl,-strip-all
# CXXFLAGS=-Wl,-strip-all
# CIBW_TEST_REQUIRES: "pytest"
# CIBW_TEST_COMMAND: "pytest -vsx {package}/tools/test_wheel.py"
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
CIBW_SKIP: "${{ matrix.cibw.skip || '' }}"
# CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
# CIBW_MANYLINUX_I686_IMAGE: "${{ matrix.cibw.manylinux_image }}"
# CIBW_MANYLINUX_AARCH64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
# CIBW_ARCHS_LINUX: "${{ matrix.cibw.arch || 'auto' }}"
# CIBW_ARCHS_MACOS: "${{ matrix.cibw.arch || 'auto' }}"
CIBW_REPAIR_WHEEL_COMMAND: "${{ matrix.cibw.repair_build_command }}"
strategy:
fail-fast: false
matrix:
include:
- os: macos-10.15
name: mac
cibw:
build: "cp39-*x86_64 cp310-*x86_64"
# - os: macos-10.15
# name: mac-arm
# cibw:
# arch: universal2
# build: "cp39* cp310*"
- os: ubuntu-20.04
name: manylinux2010
cibw:
build: "cp39-*x86_64 cp310-*x86_64"
skip: "*musllinux*"
manylinux_image: manylinux2010
# repair_build_command: 'pip install pyarrow && python -c "import pyarrow; pyarrow.create_library_symlinks()" && export LD_LIBRARY_PATH=/opt/_internal/cpython-3.9.9/lib/python3.9/site-packages/pyarrow/:$LD_LIBRARY_PATH && auditwheel repair -w {dest_dir} {wheel}'
repair_build_command: ''
- os: windows-latest
name: windows
cibw:
build: "cp39-* cp310-*"
# - os: ubuntu-20.04
# name: cp39-manylinux_aarch64
# cibw:
# build: "cp39*"
# skip: "*musllinux*"
# manylinux_image: manylinux2014
# arch: aarch64
# repair_build_command: ''
##
# - os: ubuntu-20.04
# name: cp310-manylinux_aarch64
# cibw:
# build: "cp310*"
# skip: "*musllinux*"
# manylinux_image: manylinux2014
# arch: aarch64
steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.11"
architecture: ${{ matrix.architecture }}
- name: install dependencies
run: |
pip install --upgrade setuptools pip wheel
pip install cibuildwheel=="${{ env.cibuildwheel }}"
- name: show environment
if: matrix.os != 'windows-latest'
run: |
pip freeze
export
- name: list target wheels
run: |
python -m cibuildwheel . --print-build-identifiers
- name: build wheels
run: |
python -m cibuildwheel .
- uses: actions/upload-artifact@v2
with:
name: wheels-${{ matrix.name }}
path: "wheelhouse/*"
if-no-files-found: error
# - name: Publish wheels to PyPI
# if: startsWith(github.ref, 'refs/tags/')
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# pip install twine
# twine upload --skip-existing wheelhouse/*