mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
Avoid hardcoding Brew's prefix
This commit is contained in:
@@ -13,10 +13,9 @@ case "${1%%-*}" in
|
|||||||
# However, CMake automatically uses Homebrew's `gmake`, so our CI has synced output.
|
# However, CMake automatically uses Homebrew's `gmake`, so our CI has synced output.
|
||||||
brew install bison md5sha1sum make
|
brew install bison md5sha1sum make
|
||||||
# Export `bison` to allow using the version we install from Homebrew,
|
# 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`...)
|
# instead of the outdated one preinstalled on macOS (which doesn't even support `-Wall`...).
|
||||||
# This path ↓ is used on Intel macOS, and this one ↓ on ARM ones.
|
export PATH="$(brew --prefix)/opt/bison/bin:$PATH"
|
||||||
export PATH="/usr/local/opt/bison/bin:/opt/homebrew/opt/bison/bin:$PATH"
|
printf 'PATH=%s\n' "$PATH" >>"$GITHUB_ENV" # Make it available to later CI steps too.
|
||||||
printf 'PATH=%s\n' "$PATH" >>"$GITHUB_ENV" # Make it available to later CI steps too
|
|
||||||
;;
|
;;
|
||||||
freebsd)
|
freebsd)
|
||||||
pkg install -y bash bison cmake git png
|
pkg install -y bash bison cmake git png
|
||||||
|
|||||||
Reference in New Issue
Block a user