mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
18 lines
777 B
PowerShell
18 lines
777 B
PowerShell
################################################################################
|
|
## File: Install-AliyunCli.ps1
|
|
## Desc: Install Alibaba Cloud CLI
|
|
################################################################################
|
|
|
|
Write-Host "Download Latest aliyun-cli archive"
|
|
$ZipballUrl = 'https://aliyuncli.alicdn.com/aliyun-cli-windows-latest-amd64.zip'
|
|
$aliyunArchivePath = Start-DownloadWithRetry -Url $ZipballUrl -Name "aliyun-cli.zip"
|
|
|
|
Write-Host "Expand aliyun-cli archive"
|
|
$aliyunPath = "C:\aliyun-cli"
|
|
New-Item -Path $aliyunPath -ItemType Directory -Force
|
|
Extract-7Zip -Path $aliyunArchivePath -DestinationPath $aliyunPath
|
|
|
|
# Add aliyun-cli to path
|
|
Add-MachinePathItem $aliyunPath
|
|
|
|
Invoke-PesterTests -TestFile "CLI.Tools" -TestName "Aliyun CLI" |