fix: add mac os

Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
pull/1570/head
Xinwei Xiong (cubxxw) 2 years ago
parent a6d112c96e
commit efd7048395

@ -157,10 +157,14 @@ jobs:
- name: Install latest Bash (macOS only)
if: runner.os == 'macOS'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install bash
sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells'
chsh -s /usr/local/bin/bash
echo "Bash version: $(bash --version)"
brew install gnu-sed
echo "/usr/local/bin" >> $GITHUB_PATH
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
- name: Docker Operations
run: |

Loading…
Cancel
Save