mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
* install swiftling from pkg for Mojave * Install swiftlint from package for all OS except HS, return xcode-clt installation * add utils.sh
10 lines
376 B
Bash
10 lines
376 B
Bash
#!/bin/bash -e -o pipefail
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
echo "Install SwiftLint"
|
|
swiftlintUrl=$(curl -s "https://api.github.com/repos/realm/SwiftLint/releases/latest" | jq -r '.assets[].browser_download_url | select(contains("SwiftLint.pkg"))')
|
|
download_with_retries $swiftlintUrl "/tmp" "SwiftLint.pkg"
|
|
sudo installer -pkg /tmp/SwiftLint.pkg -target /
|
|
rm -rf /tmp/SwiftLint.pkg
|