Skip to content

Commit

Permalink
Consolidate steps but add some debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Dec 18, 2024
1 parent 842e314 commit 61e77ff
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,21 @@ jobs:
run: /usr/sbin/softwareupdate --install-rosetta --agree-to-license

- name: Install Intel version of Brew
if: ${{ matrix.os.name == 'macOS-Intel' }}
shell: arch -x86_64 /bin/bash -e {0}
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

- name: Enshrine Intel version of Brew
if: ${{ matrix.os.name == 'macOS-Intel' }}
shell: arch -x86_64 /bin/bash -e {0}
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/usr/local/bin/brew shellenv)" # makes the Intel version of Brew and its installs are enshrined as the default
echo "PATH=$PATH" >> $GITHUB_ENV # modify $PATH so the above step persists into the future steps
- name: Install macOS dependencies
run: brew bundle install
if: ${{ matrix.os.preset == 'mac' }}
run: |
file $(which cmake)
which brew
brew bundle install
file $(which cmake)
file /usr/local/bin/cmake
- name: Install Linux dependencies
if: ${{ matrix.os.runner == 'ubuntu-latest' }}
Expand Down

0 comments on commit 61e77ff

Please sign in to comment.