about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-15 06:49:27 +0000
committerbors <bors@rust-lang.org>2023-11-15 06:49:27 +0000
commit31e62a923d0e98d256a17112cd8668956033c2b5 (patch)
tree78ac0a5038cf364e203c7e5719b4b07ff3cb34c5 /src/ci/scripts
parent177d8f2ee5f7c80347022ba3ba5b897630559572 (diff)
parent34e83402b811b1c4994a68b3f72e60bff04bb076 (diff)
downloadrust-31e62a923d0e98d256a17112cd8668956033c2b5.tar.gz
rust-31e62a923d0e98d256a17112cd8668956033c2b5.zip
Auto merge of #3165 - rust-lang:rustup-2023-11-15, r=RalfJung
Automatic Rustup
Diffstat (limited to 'src/ci/scripts')
-rwxr-xr-xsrc/ci/scripts/install-tidy.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ci/scripts/install-tidy.sh b/src/ci/scripts/install-tidy.sh
new file mode 100755
index 00000000000..fab126453fd
--- /dev/null
+++ b/src/ci/scripts/install-tidy.sh
@@ -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