Skip to content

Commit

Permalink
Trying Manylinux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeucher committed May 24, 2022
1 parent c466c31 commit 4b6f3e8
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,61 @@ jobs:
anaconda login --hostname github-actions-${{ matrix.os }}-$RANDOM --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build --channel conda-forge --user geo-down-under conda
anaconda logout
# pypi:
# name: Pypi (Python ${{matrix.python-version}} ${{ matrix.os }})
# runs-on: ${{ matrix.os }}
# env:
# TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest]
# python-version: [3.7, 3.8, 3.9, 3.10]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: build wheel
# if: ${{ matrix.os }} == 'ubuntu-latest'
# run: |
# pip install wheel
# python setup.py bdist_wheel --universal
# - name: build wheel
# if: ${{ matrix.os }} == 'macos-latest'
# run: |
# pip install wheel
# python setup.py bdist_wheel
# - name: upload wheel
# if: github.event_name == 'release'
# run: |
# pip install twine
# python -m twine upload dist/*

manylinux-wheels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- 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.4.2-manylinux2014_x86_64
with:
system-packages: 'cmake ninja-build'
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'setuptools numpy'
- name: Publish wheels to PyPI
if: github.event_name == 'release'
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
twine upload dist/*-manylinux*.whl

0 comments on commit 4b6f3e8

Please sign in to comment.