Skip to content

Commit db48697

Browse files
authored
Split existing workflow def up into platform-specific options (#8)
1 parent 7f5e65f commit db48697

3 files changed

Lines changed: 80 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build wheels
2+
3+
on: [workflow_dispatch]
4+
5+
jobs:
6+
build_wheels_linux:
7+
name: Build wheels on ubuntu-20.04
8+
runs-on: ubuntu-20.04
9+
env:
10+
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
11+
CIBW_SKIP: "*musllinux*"
12+
CIBW_ARCHS_LINUX: x86_64 aarch64
13+
CIBW_TEST_REQUIRES: pynose mock pure-sasl eventlet
14+
CIBW_TEST_COMMAND: echo "wheel is installed"
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
submodules: true
19+
20+
- name: Set up QEMU
21+
if: runner.os == 'Linux'
22+
uses: docker/setup-qemu-action@v2
23+
with:
24+
platforms: linux/arm64
25+
26+
- name: Build wheels
27+
run: cd python-driver && pipx run cibuildwheel==2.12.1
28+
29+
- uses: actions/upload-artifact@v3
30+
with:
31+
path: python-driver/wheelhouse/*.whl
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build wheels
2+
3+
on: [workflow_dispatch]
4+
5+
jobs:
6+
build_wheels_mac:
7+
name: Build wheels on macos-11
8+
runs-on: macos-11
9+
env:
10+
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
11+
CIBW_SKIP: "*musllinux*"
12+
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
13+
CIBW_TEST_REQUIRES: pynose mock pure-sasl eventlet
14+
CIBW_TEST_COMMAND: echo "wheel is installed"
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
submodules: true
19+
20+
- name: Build wheels
21+
run: cd python-driver && pipx run cibuildwheel==2.12.1
22+
23+
- uses: actions/upload-artifact@v3
24+
with:
25+
path: python-driver/wheelhouse/*.whl
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build wheels
2+
3+
on: [workflow_dispatch]
4+
5+
jobs:
6+
build_wheels_win:
7+
name: Build wheels on windows-2019
8+
runs-on: windows-2019
9+
env:
10+
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
11+
CIBW_SKIP: "*musllinux*"
12+
CIBW_TEST_REQUIRES: pynose mock pure-sasl eventlet
13+
CIBW_TEST_COMMAND: echo "wheel is installed"
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
submodules: true
18+
19+
- name: Build wheels
20+
run: cd python-driver && pipx run cibuildwheel==2.12.1
21+
22+
- uses: actions/upload-artifact@v3
23+
with:
24+
path: python-driver/wheelhouse/*.whl

0 commit comments

Comments
 (0)