workflows/tests: fix for pre-installed Linuxbrew
This commit is contained in:
parent
10c9d96566
commit
d9ad24f5af
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@ -18,7 +18,8 @@ jobs:
|
||||
id: set-up-homebrew
|
||||
run: |
|
||||
if which brew &>/dev/null; then
|
||||
HOMEBREW_REPOSITORY="$(brew --repo)"
|
||||
HOMEBREW_PREFIX="$(brew --prefix)"
|
||||
HOMEBREW_REPOSITORY="$HOMEBREW_PREFIX/Homebrew"
|
||||
else
|
||||
HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
|
||||
HOMEBREW_REPOSITORY="$HOMEBREW_PREFIX/Homebrew"
|
||||
@ -30,11 +31,11 @@ jobs:
|
||||
sudo mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar
|
||||
sudo ln -sf ../Homebrew/bin/brew "$HOMEBREW_PREFIX/bin/"
|
||||
cd -
|
||||
|
||||
export PATH="$HOMEBREW_PREFIX/bin:$PATH"
|
||||
echo "::add-path::$HOMEBREW_PREFIX/bin"
|
||||
fi
|
||||
|
||||
export PATH="$HOMEBREW_PREFIX/bin:$PATH"
|
||||
echo "::add-path::$HOMEBREW_PREFIX/bin"
|
||||
|
||||
cd "$HOMEBREW_REPOSITORY"
|
||||
rm -rf "$GITHUB_WORKSPACE"
|
||||
ln -s "$HOMEBREW_REPOSITORY" "$GITHUB_WORKSPACE"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user