ci: Add macOS support to install-deps.sh

Use brew install --quiet to suppress warnings about already-installed
packages on the GitHub Actions runner.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2026-06-13 15:29:35 +10:00
parent 23fd89bc8e
commit 6c1426dfa9
2 changed files with 7 additions and 1 deletions

View file

@ -89,7 +89,7 @@ jobs:
- name: Install Dependencies
run: |
brew install libyaml swig meson ninja pkg-config
./scripts/install-deps.sh
- name: Build (Make)
if: matrix.build == 'make'

View file

@ -1,6 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
if [ "$(uname -s)" = "Darwin" ]
then
brew install --quiet libyaml swig meson ninja pkg-config
exit 0
fi
if [ "$(uname -s)" = "FreeBSD" ]
then
pkg install -y git gmake flex bison meson ninja \