summaryrefslogtreecommitdiffstats
path: root/testing/get-swift.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-19 09:39:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-19 09:39:56 +0000
commitf2da78ab588a3ec60c35610b28176af14477b392 (patch)
tree77a67bf7f88e1f361e6dd8133a88bb5ddb38d01d /testing/get-swift.sh
parentReleasing debian version 3.3.1-1. (diff)
downloadpre-commit-f2da78ab588a3ec60c35610b28176af14477b392.tar.xz
pre-commit-f2da78ab588a3ec60c35610b28176af14477b392.zip
Merging upstream version 3.3.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/get-swift.sh')
-rwxr-xr-xtesting/get-swift.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/testing/get-swift.sh b/testing/get-swift.sh
deleted file mode 100755
index dfe0939..0000000
--- a/testing/get-swift.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-# This is a script used in CI to install swift
-set -euo pipefail
-
-. /etc/lsb-release
-if [ "$DISTRIB_CODENAME" = "jammy" ]; then
- SWIFT_URL='https://download.swift.org/swift-5.7.1-release/ubuntu2204/swift-5.7.1-RELEASE/swift-5.7.1-RELEASE-ubuntu22.04.tar.gz'
- SWIFT_HASH='7f60291f5088d3e77b0c2364beaabd29616ee7b37260b7b06bdbeb891a7fe161'
-else
- echo "unknown dist: ${DISTRIB_CODENAME}" 1>&2
- exit 1
-fi
-
-check() {
- echo "$SWIFT_HASH $TGZ" | sha256sum --check
-}
-
-TGZ="$HOME/.swift/swift.tar.gz"
-mkdir -p "$(dirname "$TGZ")"
-if ! check >& /dev/null; then
- rm -f "$TGZ"
- curl --location --silent --output "$TGZ" "$SWIFT_URL"
- check
-fi
-
-mkdir -p /tmp/swift
-tar -xf "$TGZ" --strip 1 --directory /tmp/swift
-
-echo '/tmp/swift/usr/bin' >> "$GITHUB_PATH"