From c73a1685cc631f178360aed4f67fad70732b5b26 Mon Sep 17 00:00:00 2001 From: charlie-foxtrot <13514783+charlie-foxtrot@users.noreply.github.com> Date: Fri, 24 Nov 2023 20:36:02 -0800 Subject: [PATCH 1/2] try to not update brew --- .github/install_dependencies | 2 +- .github/workflows/build.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/install_dependencies b/.github/install_dependencies index b7e3a1b..9465d34 100755 --- a/.github/install_dependencies +++ b/.github/install_dependencies @@ -22,7 +22,7 @@ case "${unameOut}" in Darwin*) echo "Installing MacOS dependencies" - brew update + #brew update brew install \ lame \ libshout \ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3cbaab3..58313c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,9 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 35 # runtime across all OSs, runs can get queued steps: + - name: Runner Info + run: printenv | sort + - name: Checkout repository uses: actions/checkout@main From eed5ba9db3a7ae811b77530b908f0d614182127d Mon Sep 17 00:00:00 2001 From: charlie-foxtrot <13514783+charlie-foxtrot@users.noreply.github.com> Date: Fri, 24 Nov 2023 21:44:43 -0800 Subject: [PATCH 2/2] test for github workflow --- .github/install_dependencies | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/install_dependencies b/.github/install_dependencies index 9465d34..5f3aace 100755 --- a/.github/install_dependencies +++ b/.github/install_dependencies @@ -22,7 +22,15 @@ case "${unameOut}" in Darwin*) echo "Installing MacOS dependencies" - #brew update + + # detect when running in github workflow and skip `brew update` (relay on fresh OS image) + if [ -n "${GITHUB_ACTION}" ] ; then + echo "running in GitHub Workflow, skipping brew update" + echo "running ${ImageOS} vsersion ${ImageVersion}" + else + brew update + fi + brew install \ lame \ libshout \