mirror of
https://github.com/dgibson/dtc.git
synced 2026-07-10 13:29:48 -04:00
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:
parent
23fd89bc8e
commit
6c1426dfa9
2 changed files with 7 additions and 1 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue