Commit 999f8468 authored by scoder's avatar scoder Committed by GitHub

Build and keep wheels in Github Actions. (GH-4267)

parent 559ef749
......@@ -141,6 +141,7 @@ jobs:
# MacOS sub-jobs
# ==============
# (C-only builds are used to create wheels)
- os: macos-10.15
python-version: 2.7
backend: c
......@@ -149,6 +150,22 @@ jobs:
python-version: 2.7
backend: cpp
env: { MACOSX_DEPLOYMENT_TARGET: 10.14 }
- os: macos-10.15
python-version: 3.5
backend: c
env: { MACOSX_DEPLOYMENT_TARGET: 10.14 }
- os: macos-10.15
python-version: 3.6
backend: c
env: { MACOSX_DEPLOYMENT_TARGET: 10.14 }
- os: macos-10.15
python-version: 3.7
backend: c
env: { MACOSX_DEPLOYMENT_TARGET: 10.14 }
- os: macos-10.15
python-version: 3.8
backend: c
env: { MACOSX_DEPLOYMENT_TARGET: 10.14 }
- os: macos-10.15
python-version: 3.9
backend: c
......@@ -204,6 +221,13 @@ jobs:
path: docs/build/html
if-no-files-found: ignore
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels-${{ runner.os }}
path: dist/*.whl
if-no-files-found: ignore
pycoverage:
runs-on: ubuntu-18.04
......
name: Linux wheel build
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Build manylinux1 x86 Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_i686
with:
python-versions: 'cp27-cp27m cp27-cp27mu cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m'
- name: Build manylinux1 AMD64 Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_x86_64
with:
python-versions: 'cp27-cp27m cp27-cp27mu cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m'
- name: Build manylinux2014 x86 Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_i686
with:
python-versions: 'cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m'
- name: Build manylinux2014 AMD64 Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_x86_64
with:
python-versions: 'cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m'
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist/*-manylinux*.whl
if-no-files-found: ignore
......@@ -53,8 +53,10 @@ echo "===================="
# Install python requirements
echo "Installing requirements [python]"
if [ -z "${PYTHON_VERSION##2.7}" ]; then
pip install wheel || exit 1
pip install -r test-requirements-27.txt || exit 1
elif [ -z "${PYTHON_VERSION##3.[45]*}" ]; then
python -m pip install wheel || exit 1
python -m pip install -r test-requirements-34.txt || exit 1
else
python -m pip install -U pip setuptools wheel || exit 1
......@@ -97,6 +99,9 @@ if [ "$NO_CYTHON_COMPILE" != "1" -a -n "${PYTHON_VERSION##pypy*}" ]; then
$(if [ "$COVERAGE" == "1" ]; then echo " --cython-coverage"; fi) \
$(python -c 'import sys; print("-j5" if sys.version_info >= (3,5) else "")') \
|| exit 1
if [ -z "$COVERAGE" -a -z "$STACKLESS" -a -z "$LIMITED_API" -a -z "$EXTRA_CFLAGS" -a -n "${BACKEND//*cpp*}" ]; then
python setup.py bdist_wheel || exit 1
fi
fi
if [ "$TEST_CODE_STYLE" == "1" ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment