Skip to content

Commit 7977b1b

Browse files
authored
PYTHON-1378 Make sure appropriate dependencies are installed on the GH runners (#9)
1 parent 154ad5b commit 7977b1b

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/build_wheels_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
CIBW_ARCHS_LINUX: x86_64 aarch64
1313
CIBW_TEST_REQUIRES: pynose mock pure-sasl eventlet
1414
CIBW_TEST_COMMAND: echo "wheel is installed"
15+
CIBW_BEFORE_ALL: yum install -y libev libev-devel
1516
steps:
1617
- uses: actions/checkout@v3
1718
with:
1819
submodules: true
1920
- name: Set up QEMU
20-
if: runner.os == 'Linux'
2121
uses: docker/setup-qemu-action@v2
2222
with:
2323
platforms: linux/arm64

.github/workflows/build_wheels_mac.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@ on: [workflow_dispatch]
44

55
jobs:
66
build_wheels_mac:
7-
name: Build wheels on macos-11
8-
runs-on: macos-11
7+
name: Build wheels on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
# macos-13 == Intel, macos-14 == ARM
12+
os: [macos-13, macos-14]
913
env:
1014
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
1115
CIBW_SKIP: "*musllinux*"
12-
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
1316
CIBW_TEST_REQUIRES: pynose mock pure-sasl eventlet
1417
CIBW_TEST_COMMAND: echo "wheel is installed"
18+
CIBW_BEFORE_ALL: brew install libev
1519
steps:
16-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1721
with:
1822
submodules: true
19-
- name: Build wheels
20-
run: cd python-driver && pipx run cibuildwheel==2.16.2
21-
- uses: actions/upload-artifact@v3
23+
- uses: pypa/cibuildwheel@v2.17.0
2224
with:
23-
path: python-driver/wheelhouse/*.whl
25+
package-dir: ./python-driver
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
29+
path: ./wheelhouse/*.whl

python-driver

0 commit comments

Comments
 (0)