mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
added a swiftc symlink [Ubuntu] (#1832)
* added a swiftc symlink * swiftc points to swiftc Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
This commit is contained in:
@@ -15,7 +15,9 @@ mv swift-$swift_version-RELEASE-ubuntu$image_label /usr/share/swift
|
||||
|
||||
SWIFT_PATH="/usr/share/swift/usr/bin"
|
||||
SWIFT_BIN="$SWIFT_PATH/swift"
|
||||
SWIFTC_BIN="$SWIFT_PATH/swiftc"
|
||||
ln -s "$SWIFT_BIN" /usr/local/bin/swift
|
||||
ln -s "$SWIFTC_BIN" /usr/local/bin/swiftc
|
||||
echo "SWIFT_PATH=$SWIFT_PATH" | tee -a /etc/environment
|
||||
|
||||
# Run tests to determine that the software installed as expected
|
||||
@@ -24,3 +26,8 @@ if ! command -v swift; then
|
||||
echo "Swift was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v swiftc; then
|
||||
echo "Swiftc is not linked to swift binary"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user