mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-27 20:12:46 +08:00
[macOS] Remove macOS 10.13 related code in the VE repo (#4494)
This commit is contained in:
committed by
GitHub
parent
bebaaa653c
commit
5ab1cb345e
@@ -4,17 +4,9 @@ source ~/utils/utils.sh
|
||||
echo "Installing Firefox..."
|
||||
brew install --cask firefox
|
||||
|
||||
# High Sierra builds driver from sources, and it takes about 2 hours. It's much faster to download the binary directly
|
||||
if ! is_HighSierra; then
|
||||
echo "Installing Geckodriver..."
|
||||
brew_smart_install "geckodriver"
|
||||
geckoPath="$(brew --prefix geckodriver)/bin"
|
||||
else
|
||||
geckoUrl="$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.assets[].browser_download_url | select(endswith("macos.tar.gz"))')"
|
||||
download_with_retries $geckoUrl "/tmp" "geckodriver.tar.gz"
|
||||
geckoPath="/usr/local/bin"
|
||||
tar -xzf /tmp/geckodriver.tar.gz -C $geckoPath
|
||||
fi
|
||||
echo "Installing Geckodriver..."
|
||||
brew_smart_install "geckodriver"
|
||||
geckoPath="$(brew --prefix geckodriver)/bin"
|
||||
|
||||
echo "Add GECKOWEBDRIVER to bashrc..."
|
||||
echo "export GECKOWEBDRIVER=${geckoPath}" >> "${HOME}/.bashrc"
|
||||
|
||||
Reference in New Issue
Block a user