diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index 303e9b3..45ae71d 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -33,30 +33,30 @@ jobs: run: shell: ${{ matrix.shell }} steps: - # - name: Clean up linuxOS - # if: runner.os != 'macOS' - # run: sudo apt-get install build-essential + - name: Clean up linuxOS + if: runner.os != 'macOS' + run: sudo apt-get install build-essential - # - name: Cleanup macOS - # if: runner.os == 'macOS' - # run: | - # sudo rm -rf /Applications/Xcode.app \ - # /Library/Developer/CommandLineTools - # sudo xcode-select --reset + - name: Cleanup macOS + if: runner.os == 'macOS' + run: | + sudo rm -rf /Applications/Xcode.app \ + /Library/Developer/CommandLineTools + sudo xcode-select --reset - # - name: Install Homebrew - # run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" - # env: - # NONINTERACTIVE: 1 + - name: Install Homebrew + run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + env: + NONINTERACTIVE: 1 - # - name: Set up Homebrew PATH - # run: | - # if [[ "${{ runner.os }}" = "macOS" ]] - # then - # echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}" - # else - # echo "/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin" >> "${GITHUB_PATH}" - # fi + - name: Set up Homebrew PATH + run: | + if [[ "${{ runner.os }}" = "macOS" ]] + then + echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}" + else + echo "/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin" >> "${GITHUB_PATH}" + fi - name: Check Homebrew run: brew --config