mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +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_PATH="/usr/share/swift/usr/bin"
|
||||||
SWIFT_BIN="$SWIFT_PATH/swift"
|
SWIFT_BIN="$SWIFT_PATH/swift"
|
||||||
|
SWIFTC_BIN="$SWIFT_PATH/swiftc"
|
||||||
ln -s "$SWIFT_BIN" /usr/local/bin/swift
|
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
|
echo "SWIFT_PATH=$SWIFT_PATH" | tee -a /etc/environment
|
||||||
|
|
||||||
# Run tests to determine that the software installed as expected
|
# Run tests to determine that the software installed as expected
|
||||||
@@ -24,3 +26,8 @@ if ! command -v swift; then
|
|||||||
echo "Swift was not installed"
|
echo "Swift was not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! command -v swiftc; then
|
||||||
|
echo "Swiftc is not linked to swift binary"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user