mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 12:06:59 +00:00
remove import ImageHelpers module
This commit is contained in:
@@ -27,8 +27,6 @@ Function Set-DefaultVariables
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force -DisableNameChecking
|
|
||||||
|
|
||||||
# Define executables for cached tools
|
# Define executables for cached tools
|
||||||
$toolsEnvironmentVariables = @{
|
$toolsEnvironmentVariables = @{
|
||||||
Python = @{
|
Python = @{
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ Function Set-DefaultRubyVersion {
|
|||||||
Invoke-Expression "gem update --system"
|
Invoke-Expression "gem update --system"
|
||||||
}
|
}
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$FeedPrefix = "https://npm.pkg.github.com"
|
$FeedPrefix = "https://npm.pkg.github.com"
|
||||||
$AccessToken = $env:GITHUB_FEED_TOKEN
|
$AccessToken = $env:GITHUB_FEED_TOKEN
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Azure CosmosDb Emulator
|
## Desc: Install Azure CosmosDb Emulator
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$InstallerName = "AzureCosmosDBEmulator.msi"
|
$InstallerName = "AzureCosmosDBEmulator.msi"
|
||||||
$InstallerUrl = "https://aka.ms/cosmosdb-emulator"
|
$InstallerUrl = "https://aka.ms/cosmosdb-emulator"
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Google Chrome
|
## Desc: Install Google Chrome
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
# Download and install latest Chrome browser
|
# Download and install latest Chrome browser
|
||||||
$ChromeInstallerFile = "chrome_installer.exe"
|
$ChromeInstallerFile = "chrome_installer.exe"
|
||||||
$ChromeInstallerUrl = "https://dl.google.com/chrome/install/375.126/${ChromeInstallerFile}"
|
$ChromeInstallerUrl = "https://dl.google.com/chrome/install/375.126/${ChromeInstallerFile}"
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Cloud Foundry CLI
|
## Desc: Install Cloud Foundry CLI
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers
|
|
||||||
|
|
||||||
# Download the latest cf cli exe
|
# Download the latest cf cli exe
|
||||||
$CloudFoundryCliName = "cf-cli.zip"
|
$CloudFoundryCliName = "cf-cli.zip"
|
||||||
$CloudFoundryCliUrl = "https://packages.cloudfoundry.org/stable?release=windows64-exe&source=github"
|
$CloudFoundryCliUrl = "https://packages.cloudfoundry.org/stable?release=windows64-exe&source=github"
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install SQL Server® Data-Tier Application Framework (DACFx) for Windows
|
## Desc: Install SQL Server® Data-Tier Application Framework (DACFx) for Windows
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$InstallerName = "DacFramework.msi"
|
$InstallerName = "DacFramework.msi"
|
||||||
$InstallerUrl = "https://go.microsoft.com/fwlink/?linkid=2134206"
|
$InstallerUrl = "https://go.microsoft.com/fwlink/?linkid=2134206"
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Mozilla Firefox
|
## Desc: Install Mozilla Firefox
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
# Install and configure Firefox browser
|
# Install and configure Firefox browser
|
||||||
Write-Host "Install latest Firefox browser..."
|
Write-Host "Install latest Firefox browser..."
|
||||||
$VersionsManifest = Invoke-RestMethod "https://product-details.mozilla.org/1.0/firefox_versions.json"
|
$VersionsManifest = Invoke-RestMethod "https://product-details.mozilla.org/1.0/firefox_versions.json"
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Git for Windows
|
## Desc: Install Git for Windows
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers
|
|
||||||
|
|
||||||
function getSimpleValue([string] $url, [string] $filename ) {
|
function getSimpleValue([string] $url, [string] $filename ) {
|
||||||
$fullpath = "${env:Temp}\$filename"
|
$fullpath = "${env:Temp}\$filename"
|
||||||
Invoke-WebRequest -Uri $url -OutFile $fullpath
|
Invoke-WebRequest -Uri $url -OutFile $fullpath
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install various JDKs and java tools
|
## Desc: Install various JDKs and java tools
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
function Set-JavaPath {
|
function Set-JavaPath {
|
||||||
param (
|
param (
|
||||||
[string] $Version,
|
[string] $Version,
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install the latest version of Miniconda and set $env:CONDA
|
## Desc: Install the latest version of Miniconda and set $env:CONDA
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$CondaDestination = "C:\Miniconda"
|
$CondaDestination = "C:\Miniconda"
|
||||||
|
|
||||||
# Lock to Miniconda 4.6 until we do the work to run `conda init` for the vsts user
|
# Lock to Miniconda 4.6 until we do the work to run `conda init` for the vsts user
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install .NET 4.8
|
## Desc: Install .NET 4.8
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
# .NET 4.8 Dev pack
|
# .NET 4.8 Dev pack
|
||||||
$InstallerName = "ndp48-devpack-enu.exe"
|
$InstallerName = "ndp48-devpack-enu.exe"
|
||||||
$InstallerUrl = "https://download.visualstudio.microsoft.com/download/pr/014120d7-d689-4305-befd-3cb711108212/0307177e14752e359fde5423ab583e43/${InstallerName}"
|
$InstallerUrl = "https://download.visualstudio.microsoft.com/download/pr/014120d7-d689-4305-befd-3cb711108212/0307177e14752e359fde5423ab583e43/${InstallerName}"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
## Must run after python is configured
|
## Must run after python is configured
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$PrefixPath = 'C:\npm\prefix'
|
$PrefixPath = 'C:\npm\prefix'
|
||||||
$CachePath = 'C:\npm\cache'
|
$CachePath = 'C:\npm\cache'
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
## File: Install-PHP.ps1
|
## File: Install-PHP.ps1
|
||||||
## Desc: Install PHP
|
## Desc: Install PHP
|
||||||
################################################################################
|
################################################################################
|
||||||
Import-Module -Name ImageHelpers
|
|
||||||
|
|
||||||
# Install latest PHP in chocolatey
|
# Install latest PHP in chocolatey
|
||||||
$installDir = "c:\tools\php"
|
$installDir = "c:\tools\php"
|
||||||
|
|||||||
@@ -82,8 +82,6 @@ function Install-PyPy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force -DisableNameChecking
|
|
||||||
|
|
||||||
# Get PyPy content from toolset
|
# Get PyPy content from toolset
|
||||||
$pypyTools = Get-ToolsetContent | Select-Object -ExpandProperty toolcache | Where-Object Name -eq "PyPy"
|
$pypyTools = Get-ToolsetContent | Select-Object -ExpandProperty toolcache | Where-Object Name -eq "PyPy"
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Rust for Windows
|
## Desc: Install Rust for Windows
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers
|
|
||||||
|
|
||||||
# Rust Env
|
# Rust Env
|
||||||
$env:RUSTUP_HOME = "C:\Rust\.rustup"
|
$env:RUSTUP_HOME = "C:\Rust\.rustup"
|
||||||
$env:CARGO_HOME = "C:\Rust\.cargo"
|
$env:CARGO_HOME = "C:\Rust\.cargo"
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install SQL PowerShell tool
|
## Desc: Install SQL PowerShell tool
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$BaseUrl = "https://download.microsoft.com/download/8/7/2/872BCECA-C849-4B40-8EBE-21D48CDF1456/ENU/x64"
|
$BaseUrl = "https://download.microsoft.com/download/8/7/2/872BCECA-C849-4B40-8EBE-21D48CDF1456/ENU/x64"
|
||||||
|
|
||||||
# install required MSIs
|
# install required MSIs
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
## File: Install-Sbt.ps1
|
## File: Install-Sbt.ps1
|
||||||
## Desc: Install sbt for Windows
|
## Desc: Install sbt for Windows
|
||||||
################################################################################
|
################################################################################
|
||||||
Import-Module -Name ImageHelpers
|
|
||||||
|
|
||||||
# Install the latest version of sbt.
|
# Install the latest version of sbt.
|
||||||
# See https://chocolatey.org/packages/sbt
|
# See https://chocolatey.org/packages/sbt
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Selenium Server standalone
|
## Desc: Install Selenium Server standalone
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
# Acquire latest Selenium release number from GitHub API
|
# Acquire latest Selenium release number from GitHub API
|
||||||
$latestReleaseUrl = "https://api.github.com/repos/SeleniumHQ/selenium/releases/latest"
|
$latestReleaseUrl = "https://api.github.com/repos/SeleniumHQ/selenium/releases/latest"
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ Function Install-Asset {
|
|||||||
Pop-Location
|
Pop-Location
|
||||||
}
|
}
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
# Get toolcache content from toolset
|
# Get toolcache content from toolset
|
||||||
$ToolsToInstall = @("Python", "Node", "Boost", "Go")
|
$ToolsToInstall = @("Python", "Node", "Boost", "Go")
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install vcpkg
|
## Desc: Install vcpkg
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$Uri = 'https://github.com/Microsoft/vcpkg.git'
|
$Uri = 'https://github.com/Microsoft/vcpkg.git'
|
||||||
$InstallDir = 'C:\vcpkg'
|
$InstallDir = 'C:\vcpkg'
|
||||||
$VcpkgExecPath = 'vcpkg.exe'
|
$VcpkgExecPath = 'vcpkg.exe'
|
||||||
|
|||||||
@@ -4,9 +4,6 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Requires Windows SDK with the same version number as the WDK
|
# Requires Windows SDK with the same version number as the WDK
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
if (Test-IsWin19)
|
if (Test-IsWin19)
|
||||||
{
|
{
|
||||||
$winSdkUrl = "https://go.microsoft.com/fwlink/p/?linkid=2120843"
|
$winSdkUrl = "https://go.microsoft.com/fwlink/p/?linkid=2120843"
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Windows Application Driver (WinAppDriver)
|
## Desc: Install Windows Application Driver (WinAppDriver)
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$InstallerName = "WindowsApplicationDriver.msi"
|
$InstallerName = "WindowsApplicationDriver.msi"
|
||||||
$InstallerUrl = "https://github.com/Microsoft/WinAppDriver/releases/download/v1.1/${InstallerName}"
|
$InstallerUrl = "https://github.com/Microsoft/WinAppDriver/releases/download/v1.1/${InstallerName}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install WIX.
|
## Desc: Install WIX.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
Choco-Install -PackageName wixtoolset -ArgumentList "--force"
|
Choco-Install -PackageName wixtoolset -ArgumentList "--force"
|
||||||
|
|
||||||
if(Test-IsWin19)
|
if(Test-IsWin19)
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install SQL Server Data Tools for Windows
|
## Desc: Install SQL Server Data Tools for Windows
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
#SSDT for Visual Studio 2017
|
#SSDT for Visual Studio 2017
|
||||||
#The link down below points to the latest version of SSDT for Visual Studio 2017
|
#The link down below points to the latest version of SSDT for Visual Studio 2017
|
||||||
$InstallerName = "SSDT-Setup-ENU.exe"
|
$InstallerName = "SSDT-Setup-ENU.exe"
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
## Desc: Install Windows 8.1 SDK
|
## Desc: Install Windows 8.1 SDK
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
$InstallerName = "sdksetup.exe"
|
$InstallerName = "sdksetup.exe"
|
||||||
$InstallerUrl = "http://download.microsoft.com/download/B/0/C/B0C80BA3-8AD6-4958-810B-6882485230B5/standalonesdk/${InstallerName}"
|
$InstallerUrl = "http://download.microsoft.com/download/B/0/C/B0C80BA3-8AD6-4958-810B-6882485230B5/standalonesdk/${InstallerName}"
|
||||||
$ArgumentList = ("/quiet", "/norestart")
|
$ArgumentList = ("/quiet", "/norestart")
|
||||||
|
|||||||
Reference in New Issue
Block a user