From 3d69895db6e3826c1f51a28c197da9d7a6177502 Mon Sep 17 00:00:00 2001 From: Justin Wozniak Date: Thu, 5 Sep 2024 14:43:11 -0500 Subject: [PATCH] Run OS-specific installer --- .github/workflows/build.yaml | 4 +--- dev/github-actions/setup-macos-14.sh | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100755 dev/github-actions/setup-macos-14.sh diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d8b789756..d073bc035 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -41,9 +41,7 @@ jobs: - name: Install deps run: | - brew update - brew install autoconf automake java make mpich swig tcl-tk - + dev/github-actions/setup-${{ matrix.os }}.sh # run: sudo apt-get install -y zsh tcl tcl-dev default-jdk autoconf make libcurl4-openssl-dev # - name: Set up R diff --git a/dev/github-actions/setup-macos-14.sh b/dev/github-actions/setup-macos-14.sh new file mode 100755 index 000000000..fd8d9eff8 --- /dev/null +++ b/dev/github-actions/setup-macos-14.sh @@ -0,0 +1,24 @@ +#!/bin/zsh + +# SETUP for matrix.os == macos-14 + +START=$SECONDS + +log() +{ + printf "setup-macos-14.sh: %s\n" "$*" +} + +log "Installing Homebrew packages..." + +if ( + set -ex + brew update + brew install autoconf automake java make mpich swig tcl-tk +) > brew.log +then + log "Installed Homebrew packages in %i seconds." +else + log "FAILED to install Homebrew packages!" + return 1 +fi