From cb3aedce3c633892b8cc21ed0d66c7a510890cda Mon Sep 17 00:00:00 2001 From: halprin Date: Sun, 15 Dec 2024 18:43:31 -0700 Subject: [PATCH] Specify the shell for macOS Intel --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 921fd719..e5b9ecb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' }}