|
9 | 9 |
|
10 | 10 | steps: |
11 | 11 | - uses: actions/checkout@v1 |
| 12 | + - name: apt-get update |
| 13 | + run: sudo apt-get update --fix-missing |
12 | 14 | - name: Install packages |
13 | 15 | run: sudo apt-get -y install xorg-dev freeglut3-dev |
14 | 16 | - name: configure |
15 | 17 | run: mkdir build-release && cd build-release && cmake -DCMAKE_BUILD_TYPE=Release .. |
16 | 18 | - name: build |
17 | 19 | run: cmake --build build-release |
| 20 | + |
| 21 | + build-manylinux-python: |
| 22 | + |
| 23 | + runs-on: ubuntu-latest |
| 24 | + strategy: |
| 25 | + matrix: |
| 26 | + # python-version: [3.7] |
| 27 | + python-version: [cp36-cp36m, cp37-cp37m, cp38-cp38] |
| 28 | + |
| 29 | + steps: |
| 30 | + - uses: actions/checkout@v1 |
| 31 | + |
| 32 | + # Set up python |
| 33 | + - name: Set up Python 3.8 |
| 34 | + uses: actions/setup-python@v1 |
| 35 | + with: |
| 36 | + python-version: 3.8 |
| 37 | + |
| 38 | + # Install dependencies |
| 39 | + - name: Install dependencies |
| 40 | + run: python -m pip install --upgrade twine |
| 41 | + |
| 42 | + - name: Build manylinux Python wheels |
| 43 | + uses: digitalillusions/python-wheels-manylinux-build@master |
| 44 | + with: |
| 45 | + # python-versions: 'cp37-cp37m' |
| 46 | + python-versions: '${{ matrix.python-version }}' |
| 47 | + build-requirements: '' |
| 48 | + system-packages: 'cmake3' |
| 49 | + package-path: '' |
| 50 | + pip-wheel-args: '--manylinux-build' |
| 51 | + |
| 52 | + # Upload artifacts |
| 53 | + - name: Upload compiled wheel |
| 54 | + uses: actions/upload-artifact@master |
| 55 | + with: |
| 56 | + name: pypbd-linux-${{ matrix.python-version }} |
| 57 | + path: wheelhouse |
| 58 | + if: always() |
| 59 | + |
| 60 | + # Publish to pypi |
| 61 | + - name: Publish wheels to PyPI |
| 62 | + env: |
| 63 | + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} |
| 64 | + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} |
| 65 | + run: | |
| 66 | + twine upload wheelhouse/*-manylinux*.whl --skip-existing |
0 commit comments