ci/macos: move dependencies install at the start of the build

We need a more recent make anyway (or the newly added version check won't be happy).
This commit is contained in:
Benoit Pierre
2024-07-19 21:25:09 +02:00
committed by Frans de Jonge
parent 9162a8d69c
commit 2d438c98a3

View File

@@ -29,9 +29,45 @@ jobs:
MAKEFLAGS: 'OUTPUT_DIR=build INSTALL_DIR=install TARGET=macos'
steps:
# Install dependencies. {{{
- name: XCode version
run: xcode-select -p
- name: Install dependencies
run: |
packages=(
autoconf
automake
binutils
cmake
coreutils
gettext
gnu-getopt
grep
libtool
make
nasm
ninja
p7zip
pkg-config
sdl2
wget
)
brew install --formula --quiet "${packages[@]}"
- name: Update PATH
run: >
printf '%s\n'
"$(brew --prefix)/opt/gettext/bin"
"$(brew --prefix)/opt/gnu-getopt/bin"
"$(brew --prefix)/opt/grep/libexec/gnubin"
"$(brew --prefix)/opt/make/libexec/gnubin"
| tee "${GITHUB_PATH}"
# }}}
# Checkout / fetch. {{{
- name: Checkout
@@ -87,28 +123,6 @@ jobs:
# }}}
# Install dependencies. {{{
- name: Install homebrew dependencies
# Compared to the README, adds p7zip.
run: |
packages=(
nasm binutils coreutils libtool autoconf automake cmake make
sdl2 gettext pkg-config wget gnu-getopt grep p7zip ninja
)
brew install --formula --quiet "${packages[@]}"
- name: Update PATH
run: >
printf '%s\n'
"$(brew --prefix)/opt/gettext/bin"
"$(brew --prefix)/opt/gnu-getopt/bin"
"$(brew --prefix)/opt/grep/libexec/gnubin"
"$(brew --prefix)/opt/make/libexec/gnubin"
| tee "${GITHUB_PATH}"
# }}}
# Build. {{{
- name: Build