Skip to content

Commit 9416f57

Browse files
committed
updated CI 10
1 parent 4da79e1 commit 9416f57

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.azdevops/TestsTemplate.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
if ("${{ parameters.vmImageName }}" -like 'macos-*')
3333
{
34-
$url = "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/powershell-7.3.0-preview.6-osx-x64.tar.gz"
34+
$url = "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/powershell-7.3.0-preview.6-osx-x64.pkg"
3535
$downloadFilename = "pwsh_download.pkg"
3636
}
3737
if ("${{ parameters.vmImageName }}" -like 'ubuntu-*')
@@ -48,14 +48,20 @@ jobs:
4848
Expand-Archive -Path $downloadDestination -DestinationPath "pwsh-preview"
4949
$powerShellPreview = Join-Path $pwd "pwsh-preview" "pwsh.exe"
5050
}
51-
if ("${{ parameters.vmImageName }}" -like 'ubuntu-*' -or "${{ parameters.vmImageName }}" -like 'macos-*')
51+
if ("${{ parameters.vmImageName }}" -like 'ubuntu-*')
5252
{
5353
gunzip -d $downloadDestination
5454
$downloadDestination = $downloadDestination.Replace(".gz", "")
5555
mkdir "pwsh-preview"
5656
tar -x -f $downloadDestination -C "pwsh-preview"
5757
$powerShellPreview = Join-Path $pwd "pwsh-preview" "pwsh"
5858
}
59+
if ("${{ parameters.vmImageName }}" -like 'macos-*')
60+
{
61+
sudo xattr -rd com.apple.quarantine "${downloadDestination}"
62+
sudo installer -pkg "${downloadDestination}" -target /
63+
}
64+
5965
6066
# Write the location of PowerShell Preview
6167
Write-Host "##vso[task.setvariable variable=PowerShellPreviewExecutablePath;]$powershellPreview"

0 commit comments

Comments
 (0)