|
63 | 63 | platforms: all
|
64 | 64 |
|
65 | 65 | - name: Install cibuildwheel
|
| 66 | + # Note: the default manylinux is manylinux2014 |
66 | 67 | run: python -m pip install "cibuildwheel>=2.4,<3"
|
67 | 68 |
|
68 | 69 | - name: Build MacOS Py37 Wheel
|
|
75 | 76 | CIBW_TEST_COMMAND: "python {project}/tools/fail_if_no_c.py"
|
76 | 77 | run: python -m cibuildwheel --output-dir wheelhouse
|
77 | 78 |
|
78 |
| - - name: Build wheels |
| 79 | + - name: Build wheel |
79 | 80 | if: ${{ matrix.python != 'cp37' || matrix.buildplat[0] != 'macos-11' }}
|
80 | 81 | env:
|
81 | 82 | CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
|
|
87 | 88 | path: ./wheelhouse/*.whl
|
88 | 89 | if-no-files-found: error
|
89 | 90 |
|
| 91 | + build_manylinux1_wheels: |
| 92 | + runs-on: ubuntu-latest |
| 93 | + strategy: |
| 94 | + # Ensure that a wheel builder finishes even if another fails |
| 95 | + fail-fast: false |
| 96 | + matrix: |
| 97 | + python: ["cp37", "cp38", "cp39"] |
| 98 | + steps: |
| 99 | + - name: Checkout pymongo |
| 100 | + uses: actions/checkout@v3 |
| 101 | + with: |
| 102 | + fetch-depth: 0 |
| 103 | + |
| 104 | + - name: Set up python version |
| 105 | + run: | |
| 106 | + export PYTHON_VERSION=$(sed 's/^cp3/3./' <<< ${{ matrix.python }} ) |
| 107 | + echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV |
| 108 | +
|
| 109 | + - uses: actions/setup-python@v4 |
| 110 | + with: |
| 111 | + python-version: ${{env.PYTHON_VERSION}} |
| 112 | + cache: 'pip' |
| 113 | + cache-dependency-path: 'pyproject.toml' |
| 114 | + allow-prereleases: true |
| 115 | + |
| 116 | + - name: Install cibuildwheel |
| 117 | + run: python -m pip install "cibuildwheel>=2.4,<3" |
| 118 | + |
| 119 | + - name: Build manylinux_x86_64 |
| 120 | + env: |
| 121 | + CIBW_BUILD: ${{ matrix.python }}-manylinux_x86_64 |
| 122 | + CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 |
| 123 | + run: python -m cibuildwheel --output-dir wheelhouse |
| 124 | + |
| 125 | + - name: Build manylinux_i686 |
| 126 | + env: |
| 127 | + CIBW_BUILD: ${{ matrix.python }}-manylinux_i686 |
| 128 | + CIBW_MANYLINUX_I686_IMAGE: manylinux1 |
| 129 | + run: python -m cibuildwheel --output-dir wheelhouse |
| 130 | + |
| 131 | + - uses: actions/upload-artifact@v3 |
| 132 | + with: |
| 133 | + name: wheel-${{ matrix.python }}-manylinux1 |
| 134 | + path: ./wheelhouse/*.whl |
| 135 | + if-no-files-found: error |
| 136 | + |
90 | 137 | make_sdist:
|
91 | 138 | name: Make SDist
|
92 | 139 | runs-on: macos-latest
|
@@ -119,7 +166,7 @@ jobs:
|
119 | 166 |
|
120 | 167 | collect_dist:
|
121 | 168 | runs-on: ubuntu-latest
|
122 |
| - needs: [build_wheels, make_sdist] |
| 169 | + needs: [build_wheels, build_manylinux1_wheels, make_sdist] |
123 | 170 | name: Download Wheels
|
124 | 171 | steps:
|
125 | 172 | - name: Download all workflow run artifacts
|
|
0 commit comments