Skip to content

Commit f129f14

Browse files
committed
fix macos build
1 parent 1c319f2 commit f129f14

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ jobs:
106106
run: |
107107
uv venv .test-venv
108108
source .test-venv/bin/activate
109-
uv pip install "${{ steps.select-wheel-macos.outputs.wheel }}" ./livekit-api ./livekit-protocol
109+
# Use pip for wheel install to avoid uv's strict platform compatibility check
110+
pip install "${{ steps.select-wheel-macos.outputs.wheel }}"
111+
uv pip install ./livekit-api ./livekit-protocol
110112
uv pip install pytest pytest-asyncio numpy matplotlib
111113
112114
- name: Create venv and install dependencies (Windows)

livekit-rtc/pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ skip = "*-musllinux_*" # not supported (libwebrtc is using glibc)
5858

5959
before-build = "pip install requests && python rust-sdks/download_ffi.py --output livekit/rtc/resources"
6060

61+
# macOS deployment targets must match the FFI binaries (see rust-sdks/.github/workflows/ffi-builds.yml)
62+
[tool.cibuildwheel.macos]
63+
environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" }
64+
65+
[[tool.cibuildwheel.overrides]]
66+
select = "*-macosx_arm64"
67+
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0" } # arm64 requires macOS 11+
68+
6169
manylinux-x86_64-image = "manylinux_2_28"
6270
manylinux-i686-image = "manylinux_2_28"
6371
manylinux-aarch64-image = "manylinux_2_28"

0 commit comments

Comments
 (0)