blob: b5d886c9f92fd8826929dec84a846ea79e5e7fb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 }}
|