diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 6cf7a0a..b4ca1c2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 @@ -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 @@ -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 }}