Skip to content
Permalink
v0.10.0
Switch branches/tags
View runs Go to file
 
 
Cannot retrieve contributors at this time
119 lines (110 sloc) 3.37 KB
name: Packaging
on: [push]
jobs:
build_sdist:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Create packages
run: python setup.py sdist
- uses: actions/upload-artifact@v1
with:
name: wsgi_lineprof_dist
path: dist
build_wheel_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build manylinux1/manylinux2010 wheel
run: |
docker info
./scripts/build_manylinux_wrapper.sh
- uses: actions/upload-artifact@master
with:
name: wsgi_lineprof_dist
path: dist/wheelhouse
build_wheel_macos:
runs-on: macos-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Create packages
run: python setup.py bdist_wheel
- name: delocate for macOS wheels
run: |
python -m pip install --upgrade delocate
delocate-addplat --rm-orig \
-p macosx_10_15_x86_64 \
-p macosx_10_14_x86_64 \
-p macosx_10_13_x86_64 \
-p macosx_10_12_x86_64 \
-p macosx_10_11_x86_64 \
-p macosx_10_10_x86_64 \
dist/*.whl
- uses: actions/upload-artifact@master
with:
name: wsgi_lineprof_dist
path: dist
build_wheel_windows:
runs-on: windows-2019
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.6, 3.7, 3.8]
architecture: ['x86', 'x64']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }} (${{ matrix.architecture }})
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
# Install Microsoft Visual C++ Compiler for Python 2.7
# http://aka.ms/vcpython27
- name: Install MSVC++ for Python 2.7
if: matrix.python-version == 2.7
run: choco install vcpython27 -y
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Create packages
run: python setup.py bdist_wheel
env:
# This is for avoiding the error like this:
# pyconfig.h(68): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
INCLUDE: c:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/SDK/ScopeCppSDK/SDK/include/ucrt
- uses: actions/upload-artifact@master
with:
name: wsgi_lineprof_dist
path: dist
build:
needs:
- build_sdist
- build_wheel_linux
- build_wheel_macos
- build_wheel_windows
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v1
with:
name: wsgi_lineprof_dist
path: dist
- name: Show result
run: ls -l dist