workflows/tests: simplify PATH setup.

Doesn't need to be a separate step.
This commit is contained in:
Mike McQuaid 2020-04-30 16:50:22 +01:00
parent d208d68400
commit 51d8ce8e8f
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -14,14 +14,6 @@ jobs:
matrix: matrix:
os: [ubuntu-latest, macOS-latest] os: [ubuntu-latest, macOS-latest]
steps: steps:
- name: Set up Homebrew PATH
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
echo "::add-path::/home/linuxbrew/.linuxbrew/bin"
else
echo "::add-path::/usr/local/bin"
fi
- name: Set up Homebrew - name: Set up Homebrew
run: | run: |
if which brew &>/dev/null; then if which brew &>/dev/null; then
@ -37,6 +29,9 @@ jobs:
sudo mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar sudo mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar
sudo ln -sf ../Homebrew/bin/brew "$HOMEBREW_PREFIX/bin/" sudo ln -sf ../Homebrew/bin/brew "$HOMEBREW_PREFIX/bin/"
cd - cd -
export PATH="$HOMEBREW_PREFIX/bin:$PATH"
echo "::add-path::$HOMEBREW_PREFIX/bin"
fi fi
cd "$HOMEBREW_REPOSITORY" cd "$HOMEBREW_REPOSITORY"