Skip to content

Commit 312ffb9

Browse files
Test manylinux2014 wheels
Resolves: #200
1 parent 99ee548 commit 312ffb9

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Release",
33
"on": { "push": { "tags": "v*" }},
44
"jobs": {
5-
"release-linux": {
5+
"release-main": {
66
"runs-on": "ubuntu-latest",
77
"steps": [
88
{
@@ -63,6 +63,25 @@
6363
],
6464
},
6565

66+
"release-manylinux2014": {
67+
"runs-on": "ubuntu-latest",
68+
"steps": [
69+
{
70+
"name": "Check out code",
71+
"uses": "actions/checkout@v2",
72+
},
73+
{
74+
"name": "manylinux2014 build",
75+
"run": "./ci/run-on-linux.sh ./ci/manylinux2014.sh",
76+
"env": {
77+
"DISTRO": "quay.io/pypa/manylinux2014_x86_64",
78+
"TWINE_USER": "rharwood",
79+
"TWINE_PASSWORD": "${{ secrets.pypi_password }}",
80+
},
81+
},
82+
],
83+
},
84+
6685
"release-windows": {
6786
"runs-on": "windows-latest",
6887
"strategy": {

ci/manylinux2014.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash -ex
2+
3+
source ./ci/lib-setup.sh
4+
source ./ci/lib-deploy.sh
5+
6+
setup::rh::yuminst krb5-devel
7+
8+
for python in /opt/python/*/bin/python; do
9+
if [[ $python == *35* ]]; then
10+
continue
11+
fi
12+
13+
$python -m pip install --install-option='--no-cython-compile' cython
14+
$python setup.py bdist_wheel
15+
done
16+
17+
for whl in dist/*.whl; do
18+
auditwheel repair $whl
19+
done
20+
21+
python=/opt/python/cp38-cp38/bin/python
22+
$python -m pip install twine
23+
24+
echo 'Running: set +x, python -m twine upload...'
25+
set +x
26+
$python -m twine upload -u $TWINE_USER -p $TWINE_PASSWORD wheelhouse/*.whl \
27+
>out.log 2>&1 || true
28+
set -x
29+
30+
egrep -i 'fail|error' out.log && cat.out.log && exit 1
31+
32+
exit 0

0 commit comments

Comments
 (0)