build: fix macOS CI (brew meson, cocoa/gl-cocoa, system zlib)

pip installs are blocked by PEP 668 on the macOS runners, so install meson
via brew. Enable cocoa and gl-cocoa: on macOS the OpenGL render API
backend of libmpv requires them (system frameworks only). Build no zlib
ourselves - macOS ships it in the system like iconv. Use PKG_CONFIG_PATH
additively instead of overriding PKG_CONFIG_LIBDIR so system pkg-config
files (icu-uc, ...) stay visible.
This commit is contained in:
david
2026-10-01 01:01:22 +02:00
parent 4b385cd92f
commit 4845b5e44f
2 changed files with 9 additions and 21 deletions
+2 -5
View File
@@ -55,11 +55,8 @@ jobs:
- name: Install dependencies
run: |
brew install ccache nasm ninja
python3 -m pip install --user meson
export PATH="$HOME/Library/Python/3.12/bin:$PATH"
# export so meson finds pip-installed tools
echo "$HOME/Library/Python/3.12/bin" >> "$GITHUB_PATH"
# PEP 668: pip installs are blocked on the macOS runner, use brew.
brew install ccache nasm ninja meson
# Run the vendored build script from inside the mpv source tree, so the
# native build writes macos_prefix/ and the meson build next to mpv's