mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
removed unused libs and fixed swift.sh
This commit is contained in:
@@ -10,12 +10,12 @@ swift_version="5.1.5"
|
||||
|
||||
wget -P /tmp https://swift.org/builds/swift-$swift_version-release/ubuntu${image_label//./}/swift-$swift_version-RELEASE/swift-$swift_version-RELEASE-ubuntu$image_label.tar.gz
|
||||
tar xzf /tmp/swift-$swift_version-RELEASE-ubuntu$image_label.tar.gz
|
||||
sudo mv swift-$swift_version-RELEASE-ubuntu$image_label /usr/share/swift
|
||||
mv swift-$swift_version-RELEASE-ubuntu$image_label /usr/share/swift
|
||||
|
||||
SWIFT_DIR="/usr/share/swift/usr/bin/swift"
|
||||
SWIFT_BIN="/usr/share/swift/usr/bin/swift"
|
||||
SWIFT_PATH="/usr/share/swift/usr/bin"
|
||||
sudo ln -s "$SWIFT_DIR" /usr/local/bin/swift
|
||||
echo "SWIFT_PATH =$SWIFT_PATH" | sudo tee -a /etc/environment
|
||||
ln -s "$SWIFT_BIN" /usr/local/bin/swift
|
||||
echo "SWIFT_PATH=$SWIFT_PATH" | tee -a /etc/environment
|
||||
|
||||
# Run tests to determine that the software installed as expected
|
||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||
|
||||
Reference in New Issue
Block a user