Skip to content

Commit 4a50580

Browse files
Generate manylinux wheel
1 parent 16466c1 commit 4a50580

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/python-app.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
python-version: [3.7, 3.8, 3.9]
21-
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
21+
os: ['windows-latest', 'ubuntu-18.04', 'macos-latest']
2222
# python-version: [3.9]
2323
# os: ['windows-latest']
2424
fail-fast: false
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install dependencies
4545
run: |
4646
python -m pip install --upgrade pip
47-
python -m pip install flake8 pytest scikit-build cython
47+
python -m pip install flake8 pytest scikit-build cython auditwheel
4848
# - name: Lint with flake8
4949
# run: |
5050
# # stop the build if there are Python syntax errors or undefined names
@@ -71,9 +71,23 @@ jobs:
7171
run: |
7272
python -m pip install -r ../requirements-dev.txt
7373
python3 -m pytest -s -x test_testnet.py -k test_hello
74+
- name: auditwheel repair
75+
if: ${{ matrix.os == 'ubuntu-18.04' }}
76+
id: manylinuxwhlfile
77+
working-directory: ./dist
78+
run: |
79+
python -m auditwheel repair --plat manylinux_2_17_x86_64 ${{ steps.whlfile.outputs.value }}
80+
echo "::set-output name=value::$(python ../scripts/get_whl_file.py ./wheelhouse manylinux)"
81+
echo "+++manylinuxwhlfile: ${{ steps.manylinuxwhlfile.outputs.value }}"
7482
- name: Release
7583
uses: softprops/action-gh-release@v1
7684
if: startsWith(github.ref, 'refs/tags/')
7785
with:
7886
files: |
7987
./dist/${{ steps.whlfile.outputs.value }}
88+
- name: Release manylinux wheel
89+
if: ${{ matrix.os == 'ubuntu-18.04' && startsWith(github.ref, 'refs/tags/') }}
90+
uses: softprops/action-gh-release@v1
91+
with:
92+
files: |
93+
./dist/wheelhouse/${{ steps.manylinuxwhlfile.outputs.value }}

0 commit comments

Comments
 (0)