ci/vs2019: Convert mesa_build.ps1 to using PowerShell 7 && operator

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16934>
This commit is contained in:
Yonggang Luo 2022-06-14 16:59:38 +08:00 committed by Marge Bot
parent 47bce47736
commit e3a7ccba57
2 changed files with 4 additions and 10 deletions

View File

@ -413,7 +413,7 @@ windows-vs2019:
- .windows-build-rules
stage: build-misc
script:
- . .\.gitlab-ci\windows\mesa_build.ps1
- pwsh -ExecutionPolicy RemoteSigned .\.gitlab-ci\windows\mesa_build.ps1
artifacts:
paths:
- _build/meson-logs/*.txt

View File

@ -59,15 +59,9 @@ meson `
-Dwarning_level=2 `
-Dzlib:warning_level=1 `
-Dlibelf:warning_level=1 `
$sourcedir
if ($?) {
meson install --skip-subprojects
}
if ($?) {
meson test --num-processes 32
}
$sourcedir && `
meson install --skip-subprojects && `
meson test --num-processes 32
$buildstatus = $?
Pop-Location