From 756e0efeb192b6d528cffd71f01a1fccf312fdbe Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 14 Apr 2024 22:29:13 +0200 Subject: [PATCH] ci: small macOS cleanups Reduce differences with the configuration used on koreader-base. --- .github/workflows/build.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b15df5850..aa6c8e247 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,14 +29,19 @@ jobs: filter: tree:0 show-progress: false + - name: Install ccache + run: | + wget --progress=dot:mega https://github.com/ccache/ccache/releases/download/v4.9.1/ccache-4.9.1-darwin.tar.gz + tar xf ccache-4.9.1-darwin.tar.gz + printf '%s\n' "$PWD/ccache-4.9.1-darwin" >>"${GITHUB_PATH}" + - name: Homebrew install dependencies - # Compared to the README, adds ccache for faster compilation times - # Compared to the emulator, adds p7zip. + # Compared to the README, adds p7zip. run: | packages=( nasm binutils coreutils libtool autoconf automake cmake makedepend sdl2 lua@5.1 luarocks gettext pkg-config wget gnu-getopt grep bison - ccache p7zip + p7zip ) # Lua 5.1 is disabled, so we need to work around that: # - fetch all packages @@ -48,10 +53,18 @@ jobs: # - and install the rest brew install "${packages[@]}" + - name: Update PATH + run: | + printf '%s\n' \ + "$(brew --prefix)/opt/bison/bin" \ + "$(brew --prefix)/opt/gettext/bin" \ + "$(brew --prefix)/opt/gnu-getopt/bin" \ + "$(brew --prefix)/opt/grep/libexec/gnubin" \ + >>"${GITHUB_PATH}" + - name: Building in progress… run: | export MACOSX_DEPLOYMENT_TARGET=10.15; - export PATH="$(brew --prefix)/opt/gettext/bin:$(brew --prefix)/opt/gnu-getopt/bin:$(brew --prefix)/opt/bison/bin:$(brew --prefix)/opt/grep/libexec/gnubin:${PATH}"; ./kodev release macos - name: Uploading artifacts