-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use system curl in CI/CD for macOS (ARM & x86)
- Loading branch information
1 parent
aae693d
commit bd51e7a
Showing
1 changed file
with
0 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
echo "----- preinstalled curl version -----" | ||
curl --version | ||
|
||
echo "----- install prerequisite packages -----" | ||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true | ||
brew uninstall --force --ignore-dependencies curl | ||
brew update | ||
brew install -s curl | ||
brew link --force --overwrite curl | ||
CURL_PATH="$(brew --prefix curl)/bin" | ||
export CURL_PATH | ||
echo "CURL_PATH=$CURL_PATH" | ||
PATH="$CURL_PATH:$PATH" | ||
export PATH | ||
brew install bash expect pkg-config squid jq | ||
sudo squid -k shutdown || true | ||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true | ||
|