summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorodidev <odidev@puresoftware.com>2022-03-07 13:30:11 +0500
committerodidev <odidev@puresoftware.com>2022-03-07 13:30:11 +0500
commitd839cfb69f58df99b0d1b84924dde8468fc2faee (patch)
tree7715888757d6a49780940242c7c443c7aa19890f /.github
parent3e792014dcd932e763838ed4c84aa7737d30edcd (diff)
downloadpycurl-d839cfb69f58df99b0d1b84924dde8468fc2faee.tar.gz
Add Linux(x86_64 and aarch64) wheel build support
Signed-off-by: odidev <odidev@puresoftware.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cibuildwheel.yml58
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 }}