Skip to content

Commit

Permalink
Generate manylinux wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
learnforpractice committed Oct 10, 2021
1 parent 16466c1 commit 4a50580
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/python-app.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
os: ['windows-latest', 'ubuntu-18.04', 'macos-latest']
# python-version: [3.9]
# os: ['windows-latest']
fail-fast: false
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest scikit-build cython
python -m pip install flake8 pytest scikit-build cython auditwheel
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
Expand All @@ -71,9 +71,23 @@ jobs:
run: |
python -m pip install -r ../requirements-dev.txt
python3 -m pytest -s -x test_testnet.py -k test_hello
- name: auditwheel repair
if: ${{ matrix.os == 'ubuntu-18.04' }}
id: manylinuxwhlfile
working-directory: ./dist
run: |
python -m auditwheel repair --plat manylinux_2_17_x86_64 ${{ steps.whlfile.outputs.value }}
echo "::set-output name=value::$(python ../scripts/get_whl_file.py ./wheelhouse manylinux)"
echo "+++manylinuxwhlfile: ${{ steps.manylinuxwhlfile.outputs.value }}"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./dist/${{ steps.whlfile.outputs.value }}
- name: Release manylinux wheel
if: ${{ matrix.os == 'ubuntu-18.04' && startsWith(github.ref, 'refs/tags/') }}
uses: softprops/action-gh-release@v1
with:
files: |
./dist/wheelhouse/${{ steps.manylinuxwhlfile.outputs.value }}

0 comments on commit 4a50580

Please sign in to comment.