mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 12:06:59 +00:00
Fixed typos (#9509)
* Fixed some typos. * Some more typos. --------- Co-authored-by: Leon Zandman <lzandman@rdw.nl>
This commit is contained in:
@@ -13,15 +13,15 @@ class BaseNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[String] ToMarkdown([Int32] $Level) {
|
[String] ToMarkdown([Int32] $Level) {
|
||||||
throw "Abtract method 'ToMarkdown(level)' is not implemented for '$($this.GetType().Name)'"
|
throw "Abstract method 'ToMarkdown(level)' is not implemented for '$($this.GetType().Name)'"
|
||||||
}
|
}
|
||||||
|
|
||||||
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
|
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
|
||||||
throw "Abtract method 'IsSimilarTo' is not implemented for '$($this.GetType().Name)'"
|
throw "Abstract method 'IsSimilarTo' is not implemented for '$($this.GetType().Name)'"
|
||||||
}
|
}
|
||||||
|
|
||||||
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
|
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
|
||||||
throw "Abtract method 'IsIdenticalTo' is not implemented for '$($this.GetType().Name)'"
|
throw "Abstract method 'IsIdenticalTo' is not implemented for '$($this.GetType().Name)'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ class BaseToolNode: BaseNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[String] GetValue() {
|
[String] GetValue() {
|
||||||
throw "Abtract method 'GetValue' is not implemented for '$($this.GetType().Name)'"
|
throw "Abstract method 'GetValue' is not implemented for '$($this.GetType().Name)'"
|
||||||
}
|
}
|
||||||
|
|
||||||
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
|
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function Push-AnkaTemplateToRegistry {
|
|||||||
[string] $TemplateName
|
[string] $TemplateName
|
||||||
)
|
)
|
||||||
|
|
||||||
# if registry uuid doesn't match than delete an image in registry
|
# if registry uuid doesn't match then delete an image in registry
|
||||||
$AnkaCaCrtPath="$HOME/.config/anka/certs/anka-ca-crt.pem"
|
$AnkaCaCrtPath="$HOME/.config/anka/certs/anka-ca-crt.pem"
|
||||||
$images = anka --machine-readable registry --cacert $AnkaCaCrtPath --registry-path $RegistryUrl list | ConvertFrom-Json | ForEach-Object body
|
$images = anka --machine-readable registry --cacert $AnkaCaCrtPath --registry-path $RegistryUrl list | ConvertFrom-Json | ForEach-Object body
|
||||||
$images | Where-Object name -eq $TemplateName | ForEach-Object {
|
$images | Where-Object name -eq $TemplateName | ForEach-Object {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ function Invoke-SoftwareUpdate {
|
|||||||
$ipAddress = Get-AnkaVMIPAddress -VMName $TemplateName
|
$ipAddress = Get-AnkaVMIPAddress -VMName $TemplateName
|
||||||
|
|
||||||
# Unenroll Seed
|
# Unenroll Seed
|
||||||
Write-Host "`t[*] Reseting the seed before requesting stable versions"
|
Write-Host "`t[*] Resetting the seed before requesting stable versions"
|
||||||
Remove-CurrentBetaSeed -HostName $ipAddress | Show-StringWithFormat
|
Remove-CurrentBetaSeed -HostName $ipAddress | Show-StringWithFormat
|
||||||
|
|
||||||
# Install Software Updates
|
# Install Software Updates
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ function Get-MacOSInstaller {
|
|||||||
Write-Host "`t[*] Beta Version requested. Enrolling machine to DeveloperSeed"
|
Write-Host "`t[*] Beta Version requested. Enrolling machine to DeveloperSeed"
|
||||||
sudo $seedutil enroll DeveloperSeed | Out-Null
|
sudo $seedutil enroll DeveloperSeed | Out-Null
|
||||||
} else {
|
} else {
|
||||||
Write-Host "`t[*] Reseting the seed before requesting stable versions"
|
Write-Host "`t[*] Resetting the seed before requesting stable versions"
|
||||||
sudo $seedutil unenroll | Out-Null
|
sudo $seedutil unenroll | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
source ~/utils/utils.sh
|
source ~/utils/utils.sh
|
||||||
|
|
||||||
add_filtered_instalaltion_components() {
|
add_filtered_installation_components() {
|
||||||
local minimum_version=$1
|
local minimum_version=$1
|
||||||
shift
|
shift
|
||||||
local tools_array=("$@")
|
local tools_array=("$@")
|
||||||
|
|
||||||
for item in ${tools_array[@]}; do
|
for item in ${tools_array[@]}; do
|
||||||
# take the last argument after spliting string by ';'' and '-''
|
# take the last argument after splitting string by ';'' and '-''
|
||||||
version=$(echo "${item##*[-;]}")
|
version=$(echo "${item##*[-;]}")
|
||||||
if [[ "$(printf "${minimum_version}\n${version}\n" | sort -V | head -n1)" == "$minimum_version" ]]; then
|
if [[ "$(printf "${minimum_version}\n${version}\n" | sort -V | head -n1)" == "$minimum_version" ]]; then
|
||||||
components+=($item)
|
components+=($item)
|
||||||
@@ -96,11 +96,11 @@ echo "export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME" >> "${HOME}/.bashrc"
|
|||||||
echo "export ANDROID_NDK_LATEST_HOME=$ANDROID_NDK_LATEST_HOME" >> "${HOME}/.bashrc"
|
echo "export ANDROID_NDK_LATEST_HOME=$ANDROID_NDK_LATEST_HOME" >> "${HOME}/.bashrc"
|
||||||
|
|
||||||
availablePlatforms=($($SDKMANAGER --list | grep "platforms;android-[0-9]" | cut -d"|" -f 1 | sort -u))
|
availablePlatforms=($($SDKMANAGER --list | grep "platforms;android-[0-9]" | cut -d"|" -f 1 | sort -u))
|
||||||
add_filtered_instalaltion_components $android_platform "${availablePlatforms[@]}"
|
add_filtered_installation_components $android_platform "${availablePlatforms[@]}"
|
||||||
|
|
||||||
allBuildTools=($($SDKMANAGER --list --include_obsolete | grep "build-tools;" | cut -d"|" -f 1 | sort -u))
|
allBuildTools=($($SDKMANAGER --list --include_obsolete | grep "build-tools;" | cut -d"|" -f 1 | sort -u))
|
||||||
availableBuildTools=$(echo ${allBuildTools[@]//*rc[0-9]/})
|
availableBuildTools=$(echo ${allBuildTools[@]//*rc[0-9]/})
|
||||||
add_filtered_instalaltion_components $android_build_tool "${availableBuildTools[@]}"
|
add_filtered_installation_components $android_build_tool "${availableBuildTools[@]}"
|
||||||
|
|
||||||
echo "y" | $SDKMANAGER ${components[@]}
|
echo "y" | $SDKMANAGER ${components[@]}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ source $HELPER_SCRIPTS/etc-environment.sh
|
|||||||
# might mail error messages to root, but that's it; otherwise it
|
# might mail error messages to root, but that's it; otherwise it
|
||||||
# is completely silent and unobtrusive, a perfect frontend for
|
# is completely silent and unobtrusive, a perfect frontend for
|
||||||
# automatic installs. If you are using this front-end, and require
|
# automatic installs. If you are using this front-end, and require
|
||||||
# non-default answers to questions, you will need to preseed the
|
# non-default answers to questions, you will need to pre-seed the
|
||||||
# debconf database
|
# debconf database
|
||||||
set_etc_environment_variable "DEBIAN_FRONTEND" "noninteractive"
|
set_etc_environment_variable "DEBIAN_FRONTEND" "noninteractive"
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ ENVPATH=${ENVPATH%"\""}
|
|||||||
replace_etc_environment_variable "PATH" "${ENVPATH}"
|
replace_etc_environment_variable "PATH" "${ENVPATH}"
|
||||||
echo "Updated /etc/environment: $(cat /etc/environment)"
|
echo "Updated /etc/environment: $(cat /etc/environment)"
|
||||||
|
|
||||||
# Сlean yarn and npm cache
|
# Clean yarn and npm cache
|
||||||
if yarn --version > /dev/null; then
|
if yarn --version > /dev/null; then
|
||||||
yarn cache clean
|
yarn cache clean
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ source $HELPER_SCRIPTS/os.sh
|
|||||||
source $HELPER_SCRIPTS/install.sh
|
source $HELPER_SCRIPTS/install.sh
|
||||||
source $HELPER_SCRIPTS/etc-environment.sh
|
source $HELPER_SCRIPTS/etc-environment.sh
|
||||||
|
|
||||||
add_filtered_instalaltion_components() {
|
add_filtered_installation_components() {
|
||||||
local minimum_version=$1
|
local minimum_version=$1
|
||||||
shift
|
shift
|
||||||
local tools_array=("$@")
|
local tools_array=("$@")
|
||||||
|
|
||||||
for item in ${tools_array[@]}; do
|
for item in ${tools_array[@]}; do
|
||||||
# Take the last argument after spliting string by ';'' and '-''
|
# Take the last argument after splitting string by ';'' and '-''
|
||||||
item_version=$(echo "${item##*[-;]}")
|
item_version=$(echo "${item##*[-;]}")
|
||||||
|
|
||||||
# Semver 'comparison'. Add item to components array, if item's version is greater than or equal to minimum version
|
# Semver 'comparison'. Add item to components array, if item's version is greater than or equal to minimum version
|
||||||
@@ -107,8 +107,8 @@ available_platforms=($($SDKMANAGER --list | sed -n '/Available Packages:/,/^$/p'
|
|||||||
all_build_tools=($($SDKMANAGER --list | grep "build-tools;" | cut -d"|" -f 1 | sort -u))
|
all_build_tools=($($SDKMANAGER --list | grep "build-tools;" | cut -d"|" -f 1 | sort -u))
|
||||||
available_build_tools=$(echo ${all_build_tools[@]//*rc[0-9]/})
|
available_build_tools=$(echo ${all_build_tools[@]//*rc[0-9]/})
|
||||||
|
|
||||||
add_filtered_instalaltion_components $minimum_platform_version "${available_platforms[@]}"
|
add_filtered_installation_components $minimum_platform_version "${available_platforms[@]}"
|
||||||
add_filtered_instalaltion_components $minimum_build_tool_version "${available_build_tools[@]}"
|
add_filtered_installation_components $minimum_build_tool_version "${available_build_tools[@]}"
|
||||||
|
|
||||||
# Install components
|
# Install components
|
||||||
echo "y" | $SDKMANAGER ${components[@]}
|
echo "y" | $SDKMANAGER ${components[@]}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ EOF
|
|||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
for latest_package in ${latest_dotnet_packages[@]}; do
|
for latest_package in ${latest_dotnet_packages[@]}; do
|
||||||
echo "Determing if .NET Core ($latest_package) is installed"
|
echo "Determining if .NET Core ($latest_package) is installed"
|
||||||
if ! dpkg -S $latest_package &> /dev/null; then
|
if ! dpkg -S $latest_package &> /dev/null; then
|
||||||
echo "Could not find .NET Core ($latest_package), installing..."
|
echo "Could not find .NET Core ($latest_package), installing..."
|
||||||
apt-get install $latest_package -y
|
apt-get install $latest_package -y
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ source $HELPER_SCRIPTS/install.sh
|
|||||||
source $HELPER_SCRIPTS/etc-environment.sh
|
source $HELPER_SCRIPTS/etc-environment.sh
|
||||||
|
|
||||||
# Mozillateam PPA is added manually because sometimes
|
# Mozillateam PPA is added manually because sometimes
|
||||||
# lanuchad portal sends empty answer when trying to add it automatically
|
# launchpad portal sends empty answer when trying to add it automatically
|
||||||
|
|
||||||
REPO_URL="http://ppa.launchpad.net/mozillateam/ppa/ubuntu"
|
REPO_URL="http://ppa.launchpad.net/mozillateam/ppa/ubuntu"
|
||||||
GPG_FINGERPRINT="0ab215679c571d1c8325275b9bdb3d89ce49ec21"
|
GPG_FINGERPRINT="0ab215679c571d1c8325275b9bdb3d89ce49ec21"
|
||||||
@@ -27,7 +27,7 @@ rm $REPO_PATH
|
|||||||
# Document apt source repo's
|
# Document apt source repo's
|
||||||
echo "mozillateam $REPO_URL" >> $HELPER_SCRIPTS/apt-sources.txt
|
echo "mozillateam $REPO_URL" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||||
|
|
||||||
# add to gloabl system preferences for firefox locale en_US, because other browsers have en_US local.
|
# add to global system preferences for firefox locale en_US, because other browsers have en_US local.
|
||||||
# Default firefox local is en_GB
|
# Default firefox local is en_GB
|
||||||
echo 'pref("intl.locale.requested","en_US");' >> "/usr/lib/firefox/browser/defaults/preferences/syspref.js"
|
echo 'pref("intl.locale.requested","en_US");' >> "/usr/lib/firefox/browser/defaults/preferences/syspref.js"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# Source the helpers for use with the script
|
# Source the helpers for use with the script
|
||||||
source $HELPER_SCRIPTS/etc-environment.sh
|
source $HELPER_SCRIPTS/etc-environment.sh
|
||||||
|
|
||||||
# Any nonzero value for noninteractive installation
|
# Any nonzero value for non-interactive installation
|
||||||
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
|
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
|
||||||
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK_HOOK=1
|
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK_HOOK=1
|
||||||
export GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
export GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ source $HELPER_SCRIPTS/install.sh
|
|||||||
# Install the Homebrew on Linux
|
# Install the Homebrew on Linux
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||||
|
|
||||||
# Invoke shellenv to make brew available during runnig session
|
# Invoke shellenv to make brew available during running session
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
||||||
set_etc_environment_variable HOMEBREW_NO_AUTO_UPDATE 1
|
set_etc_environment_variable HOMEBREW_NO_AUTO_UPDATE 1
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ install_open_jdk() {
|
|||||||
chmod -R 777 /usr/lib/jvm
|
chmod -R 777 /usr/lib/jvm
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add Addoptium PPA
|
# Add Adoptium PPA
|
||||||
# apt-key is deprecated, dearmor and add manually
|
# apt-key is deprecated, dearmor and add manually
|
||||||
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor > /usr/share/keyrings/adoptium.gpg
|
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor > /usr/share/keyrings/adoptium.gpg
|
||||||
echo "deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/adoptium.list
|
echo "deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/adoptium.list
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ fi
|
|||||||
# Cleanup Cargo cache
|
# Cleanup Cargo cache
|
||||||
rm -rf ${CARGO_HOME}/registry/*
|
rm -rf ${CARGO_HOME}/registry/*
|
||||||
|
|
||||||
# Update /etc/environemnt
|
# Update /etc/environment
|
||||||
prepend_etc_environment_path '$HOME/.cargo/bin'
|
prepend_etc_environment_path '$HOME/.cargo/bin'
|
||||||
|
|
||||||
invoke_tests "Tools" "Rust"
|
invoke_tests "Tools" "Rust"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ selenium_major_version=$(get_toolset_value '.selenium.version')
|
|||||||
selenium_download_url=$(resolve_github_release_asset_url "SeleniumHQ/selenium" "contains(\"selenium-server-\") and endswith(\".jar\")" "$selenium_major_version\.+" "" "true")
|
selenium_download_url=$(resolve_github_release_asset_url "SeleniumHQ/selenium" "contains(\"selenium-server-\") and endswith(\".jar\")" "$selenium_major_version\.+" "" "true")
|
||||||
selenium_jar_path=$(download_with_retry "$selenium_download_url" "/usr/share/java/selenium-server.jar")
|
selenium_jar_path=$(download_with_retry "$selenium_download_url" "/usr/share/java/selenium-server.jar")
|
||||||
|
|
||||||
# Create an epmty file to retrive selenium version
|
# Create an empty file to retrieve selenium version
|
||||||
selenium_full_version=$(echo $selenium_download_url | awk -F"selenium-server-|.jar" '{print $2}')
|
selenium_full_version=$(echo $selenium_download_url | awk -F"selenium-server-|.jar" '{print $2}')
|
||||||
touch "/usr/share/java/selenium-server-$selenium_full_version"
|
touch "/usr/share/java/selenium-server-$selenium_full_version"
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ swift_release_name="swift-${swift_version}-RELEASE-${image_label}"
|
|||||||
archive_url="https://swift.org/builds/swift-${swift_version}-release/${image_label//./}/swift-${swift_version}-RELEASE/${swift_release_name}.tar.gz"
|
archive_url="https://swift.org/builds/swift-${swift_version}-release/${image_label//./}/swift-${swift_version}-RELEASE/${swift_release_name}.tar.gz"
|
||||||
archive_path=$(download_with_retry "$archive_url")
|
archive_path=$(download_with_retry "$archive_url")
|
||||||
|
|
||||||
# Verifing pgp signature using official swift pgp key. Referring to https://www.swift.org/install/linux/#Installation-via-Tarball
|
# Verifying PGP signature using official Swift PGP key. Referring to https://www.swift.org/install/linux/#Installation-via-Tarball
|
||||||
# Download and import swift pgp key
|
# Download and import Swift PGP key
|
||||||
pgp_key_path=$(download_with_retry "https://swift.org/keys/all-keys.asc")
|
pgp_key_path=$(download_with_retry "https://swift.org/keys/all-keys.asc")
|
||||||
gpg --no-default-keyring --keyring swift --import "$pgp_key_path"
|
gpg --no-default-keyring --keyring swift --import "$pgp_key_path"
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ gpg --no-default-keyring --keyring swift --import "$pgp_key_path"
|
|||||||
signature_path=$(download_with_retry "${archive_url}.sig")
|
signature_path=$(download_with_retry "${archive_url}.sig")
|
||||||
gpg --no-default-keyring --keyring swift --verify "$signature_path" "$archive_path"
|
gpg --no-default-keyring --keyring swift --verify "$signature_path" "$archive_path"
|
||||||
|
|
||||||
# Remove swift pgp public key with temporary keyring
|
# Remove Swift PGP public key with temporary keyring
|
||||||
rm ~/.gnupg/swift
|
rm ~/.gnupg/swift
|
||||||
|
|
||||||
# Extract and install swift
|
# Extract and install swift
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ $seleniumDownloadUrl = Resolve-GithubReleaseAssetUrl `
|
|||||||
$seleniumBinPath = Join-Path $seleniumDirectory "selenium-server.jar"
|
$seleniumBinPath = Join-Path $seleniumDirectory "selenium-server.jar"
|
||||||
Invoke-DownloadWithRetry -Url $seleniumDownloadUrl -Path $seleniumBinPath
|
Invoke-DownloadWithRetry -Url $seleniumDownloadUrl -Path $seleniumBinPath
|
||||||
|
|
||||||
# Create an empty file to retrive Selenium version
|
# Create an empty file to retrieve Selenium version
|
||||||
$seleniumFullVersion = $seleniumDownloadUrl.Split("-")[1].Split("/")[0]
|
$seleniumFullVersion = $seleniumDownloadUrl.Split("-")[1].Split("/")[0]
|
||||||
New-Item -Path $seleniumDirectory -Name "selenium-server-$seleniumFullVersion"
|
New-Item -Path $seleniumDirectory -Name "selenium-server-$seleniumFullVersion"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user