Skip to content

Commit c76f3db

Browse files
authored
INTPYTHON-757 Force usage of cmake 3 on MacOS GHA runners (#350)
1 parent 39b7665 commit c76f3db

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/dist-python.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ jobs:
8080
if: runner.os == 'macOS'
8181
run: brew install pkg-config
8282

83+
- name: Install CMake 3 on MacOS
84+
# libbson requires cmake 3, and cmake 4 is now the default on the GHA runners.
85+
if: ${{ startsWith(runner.os, 'macOS') }}
86+
run: |
87+
pipx install "cmake>=3.15,<4"
88+
8389
- name: Install deps
8490
run: python -m pip install "cibuildwheel>=2.4,<3" uv rust-just
8591

@@ -108,7 +114,7 @@ jobs:
108114

109115
make_sdist:
110116
name: Make SDist
111-
runs-on: macos-latest
117+
runs-on: ubuntu-latest
112118
steps:
113119
- uses: actions/checkout@v5
114120
with:

.github/workflows/test-python.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ jobs:
6060
with:
6161
mongodb-version: 4.4
6262
mongodb-replica-set: test-rs
63+
- name: Install CMake 3 on MacOS
64+
# libbson requires cmake 3, and cmake 4 is now the default on the GHA runners.
65+
if: ${{ startsWith(runner.os, 'macOS') }}
66+
run: |
67+
pipx install "cmake>=3.15,<4"
6368
- name: Start MongoDB on MacOS
6469
if: ${{ startsWith(runner.os, 'macOS') }}
6570
run: |

0 commit comments

Comments
 (0)