From 4b6f3e83c271e609e6959decb451311bbc4ad14a Mon Sep 17 00:00:00 2001 From: Romain Beucher Date: Tue, 24 May 2022 14:21:33 +1000 Subject: [PATCH] Trying Manylinux builds --- .github/workflows/CI.yml | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8e809d4a8..f44157c92 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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