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 \