-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install tidy for aarch64-apple-darwin
The GitHub Actions image has this preinstalled for x86_64 but not M1.
- Loading branch information
1 parent
469d34b
commit 6409053
Showing
3 changed files
with
37 additions
and
0 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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# This script downloads and installs the tidy binary from Homebrew. | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" | ||
|
||
# Only the macOS arm64/aarch64 GitHub Actions runner needs to have tidy | ||
# installed; other platforms have it preinstalled. | ||
|
||
if isMacOS; then | ||
platform=$(uname -m) | ||
case $platform in | ||
x86_64) | ||
;; | ||
arm64) | ||
brew install tidy-html5 | ||
;; | ||
*) | ||
echo "unsupported architecture: ${platform}" | ||
exit 1 | ||
esac | ||
fi |