Specify the shell for macOS Intel

This commit is contained in:
halprin 2024-12-15 18:43:31 -07:00
parent 572070ad23
commit cb3aedce3c
No known key found for this signature in database
GPG Key ID: 13654EE1A3F4E6CD

View File

@ -64,10 +64,11 @@ jobs:
- name: Install macOS Rosetta 2 and Brew
if: ${{ matrix.os.name == 'macOS-Intel' }}
shell: arch -x86_64 /bin/bash -e {0}
run: |
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
echo "MACOS_ARCH_COMMAND=arch -x86_64" >> $GITHUB_ENV
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install macOS ARM dependencies
if: ${{ matrix.os.preset == 'mac' && matrix.os.name == 'macOS-ARM' }}
@ -75,9 +76,10 @@ jobs:
- name: Install macOS Intel dependencies
if: ${{ matrix.os.preset == 'mac' && matrix.os.name == 'macOS-Intel' }}
shell: arch -x86_64 /bin/bash -e {0}
run: |
eval "$(/usr/local/bin/brew shellenv)"
arch -x86_64 /usr/local/bin/brew bundle install
/usr/local/bin/brew bundle install
- name: Install Linux dependencies
if: ${{ matrix.os.runner == 'ubuntu-latest' }}