Skip to content

Commit 57f098b

Browse files
committed
CI: update aptitude on linux before installing dependencies
1 parent 9f4a9ad commit 57f098b

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

ci/setup.ps1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ function SetupVsToolsPath {
44
Push-Location 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build'
55

66
cmd /c "vcvars64.bat&set" |
7-
ForEach-Object {
8-
if ($_ -match "=") {
9-
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
10-
}
7+
ForEach-Object {
8+
if ($_ -match "=") {
9+
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
1110
}
11+
}
1212

1313
Pop-Location
1414
}
@@ -75,6 +75,9 @@ Write-Host "Running setup script..."
7575
Write-Host "Current setup build combo is: $curBuildCombo"
7676

7777
if ($isLinux) {
78+
# update apt before installing anything
79+
sudo apt update
80+
7881
# install ninja through apt
7982
# sudo apt install -y ninja-build
8083

0 commit comments

Comments
 (0)