Skip to content

Commit d2b50d1

Browse files
author
Martin Gallwey
committed
build the wheels
1 parent 3741085 commit d2b50d1

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build wheels
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
pull_request:
8+
paths:
9+
- '.github/workflows/wheels.yml'
10+
- 'pyproject.toml'
11+
- 'setup.py'
12+
- 'pynuodb/_fetch.pyx'
13+
workflow_dispatch:
14+
15+
jobs:
16+
build_wheels:
17+
name: Wheels on ${{ matrix.os }}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest, macos-latest, windows-latest]
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
# Emulate aarch64 for Linux ARM wheels; cibuildwheel drives it via QEMU.
28+
- name: Set up QEMU
29+
if: matrix.os == 'ubuntu-latest'
30+
uses: docker/setup-qemu-action@v3
31+
with:
32+
platforms: arm64
33+
34+
- name: Build wheels
35+
uses: pypa/cibuildwheel@v2.21.3
36+
37+
- uses: actions/upload-artifact@v4
38+
with:
39+
name: wheels-${{ matrix.os }}
40+
path: ./wheelhouse/*.whl
41+
42+
build_sdist:
43+
name: Source distribution
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- name: Build sdist
49+
run: pipx run build --sdist
50+
51+
- uses: actions/upload-artifact@v4
52+
with:
53+
name: sdist
54+
path: dist/*.tar.gz

0 commit comments

Comments
 (0)