mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 14:23:04 +00:00
Move FreeBSD deps install to common CI script
Making the OS filter in test driver consistent as per https://github.com/gbdev/rgbds/pull/1899#discussion_r2942998932
This commit is contained in:
8
.github/scripts/install_deps.sh
vendored
8
.github/scripts/install_deps.sh
vendored
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
#!/bin/sh
|
||||
# This script requires `sh` instead of `bash` because the latter is not always installed on FreeBSD.
|
||||
set -eu
|
||||
|
||||
case "${1%-*}" in
|
||||
ubuntu)
|
||||
@@ -13,6 +14,9 @@ case "${1%-*}" in
|
||||
export PATH="/opt/homebrew/opt/bison/bin:$PATH"
|
||||
printf 'PATH=%s\n' "$PATH" >>"$GITHUB_ENV" # Make it available to later CI steps too
|
||||
;;
|
||||
freebsd)
|
||||
pkg install -y bash bison cmake git png
|
||||
;;
|
||||
*)
|
||||
echo "WARNING: Cannot install deps for OS '$1'"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user