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 - .windows-build-rules
stage: build-misc stage: build-misc
script: script:
- . .\.gitlab-ci\windows\mesa_build.ps1 - pwsh -ExecutionPolicy RemoteSigned .\.gitlab-ci\windows\mesa_build.ps1
artifacts: artifacts:
paths: paths:
- _build/meson-logs/*.txt - _build/meson-logs/*.txt

View File

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