-
Notifications
You must be signed in to change notification settings - Fork 76
47 lines (44 loc) · 1.29 KB
/
release-linux.yml
File metadata and controls
47 lines (44 loc) · 1.29 KB
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
name: Release Linux wheels
on:
push:
branches: ["master"]
jobs:
build:
name: Build manylinux wheels (${{ matrix.arch }})
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU (for aarch64)
if: matrix.arch == 'aarch64'
uses: docker/setup-qemu-action@v3
- name: Build wheels
uses: pypa/cibuildwheel@v2.22
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
CIBW_TEST_COMMAND: python -c "import mdfreader"
- uses: actions/upload-artifact@v4
with:
name: wheel-linux-${{ matrix.arch }}
path: wheelhouse/*.whl
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheel-linux-*
merge-multiple: true
path: dist/
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install twine "packaging>=24.2"
twine upload dist/* --skip-existing