mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
Install the latest swiftlint only for macOS 12 (#6151)
This commit is contained in:
@@ -2,7 +2,14 @@
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo "Install SwiftLint"
|
||||
swiftlintUrl=$(get_github_package_download_url "realm/SwiftLint" "contains(\"portable_swiftlint.zip\")" "latest" "$API_PAT")
|
||||
# SwiftLint now requires Swift 5.6 or higher to build, and macOS 12 or higher to run https://github.com/realm/SwiftLint/releases/tag/0.49.0
|
||||
if is_Less_Monterey; then
|
||||
version="0.48.0"
|
||||
else
|
||||
version="latest"
|
||||
fi
|
||||
|
||||
swiftlintUrl=$(get_github_package_download_url "realm/SwiftLint" "contains(\"portable_swiftlint.zip\")" "$version" "$API_PAT")
|
||||
download_with_retries $swiftlintUrl "/tmp" "portable_swiftlint.zip"
|
||||
unzip -q "/tmp/portable_swiftlint.zip" -d /usr/local/bin
|
||||
# Remove the LICENSE file that comes along with the binary and the downloaded archive
|
||||
|
||||
Reference in New Issue
Block a user