Skip to content

Merge pull request #125 from SpatioTemporal/build_matrix #91

Merge pull request #125 from SpatioTemporal/build_matrix

Merge pull request #125 from SpatioTemporal/build_matrix #91

Workflow file for this run

name: Build Wheel Manylinux and upload to PyPi
on:
push:
tags:
- v*
pull_request:
tags:
- v*
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs:
build:
runs-on: ubuntu-latest
env:
#CPPFLAGS: "-I/usr/include -I/usr/local/include -I/home/runner/stare/include/STARE/"
#LDFLAGS: "-L/home/runner/stare/lib"
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
#if: ${{ github.event_name == 'pull_request' && inputs.debug_enabled }}
if: ${{ failure() }}
timeout-minutes: 15
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine
- name: Build manylinux Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.7.1
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
pre-build-command: 'sh .github/workflows/prebuild.sh' # Clone, build, install STARE
build-requirements: 'cython numpy'
- name: Publish wheels to PyPI
run: |
twine upload dist/*-manylinux*.whl
#twine upload --repository testpypi dist/*-manylinux*.whl