mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 22:33:03 +00:00
Making the OS filter in test driver consistent as per https://github.com/gbdev/rgbds/pull/1899#discussion_r2942998932
28 lines
755 B
Bash
Executable File
28 lines
755 B
Bash
Executable File
#!/bin/sh
|
|
# This script requires `sh` instead of `bash` because the latter is not always installed on FreeBSD.
|
|
set -eu
|
|
|
|
case "${1%-*}" in
|
|
ubuntu)
|
|
sudo apt-get -qq update
|
|
sudo apt-get install -yq bison libpng-dev pkg-config
|
|
;;
|
|
macos)
|
|
brew install bison sha2 md5sha1sum
|
|
# Export `bison` to allow using the version we install from Homebrew,
|
|
# instead of the outdated one preinstalled on macOS (which doesn't even support `-Wall`...)
|
|
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'"
|
|
;;
|
|
esac
|
|
|
|
bison --version
|
|
make --version
|
|
cmake --version
|