diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-07 15:16:03 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-07 18:43:15 +0200 |
commit | 0fd87fd0fdc031a63f8c166ad1433e686b76331b (patch) | |
tree | 6eee65977f88bb86c3f919cb55166649a7b09fb4 | |
parent | 999f84685bfce33d20bc59c5ff4f09948df14d7a (diff) | |
download | cython-0fd87fd0fdc031a63f8c166ad1433e686b76331b.tar.gz |
Use different build jobs for manylinux release builds.
-rw-r--r-- | .github/workflows/wheel-manylinux.yml | 104 |
1 files changed, 92 insertions, 12 deletions
diff --git a/.github/workflows/wheel-manylinux.yml b/.github/workflows/wheel-manylinux.yml index fd740d5a0..8a0b673af 100644 --- a/.github/workflows/wheel-manylinux.yml +++ b/.github/workflows/wheel-manylinux.yml @@ -5,7 +5,7 @@ on: types: [created] jobs: - deploy: + python: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -15,29 +15,109 @@ jobs: with: python-version: 3.8 - - name: Build manylinux1 x86 Python wheels + - name: Install build dependencies + run: pip install -U setuptools pip wheel + + - name: Make sdist and Python wheel + run: make sdist pywheel + + - name: Upload sdist + uses: actions/upload-artifact@v2 + with: + name: sdist + path: dist/*.tar.gz + if-no-files-found: ignore + + - name: Upload Python wheel + uses: actions/upload-artifact@v2 + with: + name: wheel-Python + path: dist/*-none-any.whl + if-no-files-found: ignore + + manylinux1-i686: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: Build Linux wheels uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_i686 with: - python-versions: 'cp27-cp27m cp27-cp27mu cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m' + python-versions: 'cp27-cp27m cp27-cp27mu cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp39-cp39' + + - name: Upload wheels + uses: actions/upload-artifact@v2 + with: + name: wheels-Linux + path: dist/*-manylinux*.whl + if-no-files-found: ignore + + manylinux1-x86_64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 - - name: Build manylinux1 AMD64 Python wheels + - name: Build Linux wheels uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_x86_64 with: - python-versions: 'cp27-cp27m cp27-cp27mu cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m' + python-versions: 'cp27-cp27m cp27-cp27mu cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39' + + - name: Upload wheels + uses: actions/upload-artifact@v2 + with: + name: wheels-Linux + path: wheels/*-manylinux*.whl + if-no-files-found: ignore + + manylinux2014-i686: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 - - name: Build manylinux2014 x86 Python wheels + - name: Build Linux wheels uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_i686 with: - python-versions: 'cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m' + python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39' - - name: Build manylinux2014 AMD64 Python wheels - uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_x86_64 + - name: Upload wheels + uses: actions/upload-artifact@v2 + with: + name: wheels-Linux + path: wheels/*-manylinux2014*.whl + if-no-files-found: ignore + + manylinux2014-x86_64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v1 with: - python-versions: 'cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m' + python-version: 3.8 + - name: Build Linux wheels + uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_x86_64 + with: + python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39' - name: Upload wheels uses: actions/upload-artifact@v2 with: - name: wheels - path: dist/*-manylinux*.whl + name: wheels-Linux + path: wheels/*-manylinux2014*.whl if-no-files-found: ignore |