diff options
author | Oleg Pudeyev <p@users.noreply.github.com> | 2022-03-09 17:38:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 17:38:56 -0500 |
commit | a738ddb1d032fe2ccfb2cbaa5c295370d3370f35 (patch) | |
tree | 99f0169c041efcc8376b7da581e7399a1320127b | |
parent | b300c04e76d8209a04e26fb85d1ac74bf02458b7 (diff) | |
parent | d839cfb69f58df99b0d1b84924dde8468fc2faee (diff) | |
download | pycurl-a738ddb1d032fe2ccfb2cbaa5c295370d3370f35.tar.gz |
Merge pull request #739 from odidev/odidev_wheels
Add Linux(x86_64 and aarch64) wheel build support
-rw-r--r-- | .github/workflows/cibuildwheel.yml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml new file mode 100644 index 0000000..b5d886c --- /dev/null +++ b/.github/workflows/cibuildwheel.yml @@ -0,0 +1,58 @@ +name: Linux Wheels + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + package-wheel: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: [x86_64, aarch64] + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.7 + - name: Set up QEMU + if: ${{ matrix.arch == 'aarch64' }} + uses: docker/setup-qemu-action@v1 + - name: Build wheels + env: + CIBW_ARCHS: ${{matrix.arch}} + CIBW_BUILD: cp3* + CIBW_SKIP: '*-musllinux*' + CIBW_BEFORE_ALL: yum install -y libcurl-devel + run: | + python -m pip install --upgrade pip setuptools + pip install cibuildwheel + cibuildwheel --output-dir dist + shell: bash + - name: Upload wheels + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/ + + deploy: + + runs-on: ubuntu-latest + needs: package-wheel + + steps: + - uses: actions/checkout@v2 + - name: Download distributions + uses: actions/download-artifact@v2 + with: + name: dist + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: ${{ secrets.PYPI_USERNAME }} + password: ${{ secrets.PYPI_PASSWORD }} |