From 6c1426dfa963374f6134b4e63b1330320c8f1a54 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Sat, 13 Jun 2026 15:29:35 +1000 Subject: [PATCH] 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 --- .github/workflows/build.yml | 2 +- scripts/install-deps.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d2cb42..1b3d924 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index e66cbdf..01f2874 100755 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -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 \