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:
ISSOtm
2026-03-09 16:22:59 -04:00
committed by Rangi
parent 37f57a752f
commit 06e5386d93
3 changed files with 9 additions and 10 deletions

View File

@@ -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'"
;;