mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
[ubuntu] Cleanup bash scripts (#9076)
* [ubuntu] Cleanup bash scripts * Fix ms-repos lsb_release * Fix install-bicep url * Fix install-nvm
This commit is contained in:
committed by
GitHub
parent
e16b5524ff
commit
1658c2e905
@@ -32,16 +32,16 @@ rm ~/.gnupg/swift
|
||||
tar xzf "$archive_path" -C /tmp
|
||||
|
||||
SWIFT_INSTALL_ROOT="/usr/share/swift"
|
||||
SWIFT_BIN_ROOT="$SWIFT_INSTALL_ROOT/usr/bin"
|
||||
SWIFT_LIB_ROOT="$SWIFT_INSTALL_ROOT/usr/lib"
|
||||
swift_bin_root="$SWIFT_INSTALL_ROOT/usr/bin"
|
||||
swift_lib_root="$SWIFT_INSTALL_ROOT/usr/lib"
|
||||
|
||||
mv "/tmp/${swift_release_name}" $SWIFT_INSTALL_ROOT
|
||||
mkdir -p /usr/local/lib
|
||||
|
||||
ln -s "$SWIFT_BIN_ROOT/swift" /usr/local/bin/swift
|
||||
ln -s "$SWIFT_BIN_ROOT/swiftc" /usr/local/bin/swiftc
|
||||
ln -s "$SWIFT_LIB_ROOT/libsourcekitdInProc.so" /usr/local/lib/libsourcekitdInProc.so
|
||||
ln -s "$swift_bin_root/swift" /usr/local/bin/swift
|
||||
ln -s "$swift_bin_root/swiftc" /usr/local/bin/swiftc
|
||||
ln -s "$swift_lib_root/libsourcekitdInProc.so" /usr/local/lib/libsourcekitdInProc.so
|
||||
|
||||
set_etc_environment_variable "SWIFT_PATH" "${SWIFT_BIN_ROOT}"
|
||||
set_etc_environment_variable "SWIFT_PATH" "${swift_bin_root}"
|
||||
|
||||
invoke_tests "Common" "Swift"
|
||||
|
||||
Reference in New Issue
Block a user