|
18 | 18 | strategy:
|
19 | 19 | matrix:
|
20 | 20 | 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'] |
22 | 22 | # python-version: [3.9]
|
23 | 23 | # os: ['windows-latest']
|
24 | 24 | fail-fast: false
|
|
44 | 44 | - name: Install dependencies
|
45 | 45 | run: |
|
46 | 46 | 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 |
48 | 48 | # - name: Lint with flake8
|
49 | 49 | # run: |
|
50 | 50 | # # stop the build if there are Python syntax errors or undefined names
|
|
71 | 71 | run: |
|
72 | 72 | python -m pip install -r ../requirements-dev.txt
|
73 | 73 | 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 }}" |
74 | 82 | - name: Release
|
75 | 83 | uses: softprops/action-gh-release@v1
|
76 | 84 | if: startsWith(github.ref, 'refs/tags/')
|
77 | 85 | with:
|
78 | 86 | files: |
|
79 | 87 | ./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