summaryrefslogtreecommitdiff
path: root/.gitlab-ci/windows
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2020-06-18 08:34:52 +0100
committerDaniel Stone <daniels@collabora.com>2020-06-30 10:34:02 +0100
commite3e1e9f82ca934ce433bba2dcb544ca51edcb5f1 (patch)
tree9e7d1cde4e354ded25dea398ba4fde873da4623a /.gitlab-ci/windows
parentee056dfef6e3567d49e82fe4af8604885ef736f5 (diff)
downloadmesa-e3e1e9f82ca934ce433bba2dcb544ca51edcb5f1.tar.gz
CI: Correct build-directory path on Windows, and keep it
Build job artifacts capture Meson logs from _build, so we can analyse what Meson did during configuration, as well as the full output of any test jobs. We were previously calling our build directory 'build', which meant it wouldn't have been captured by the artifacts, and we were also deleting it to make really sure there was no chance of logs getting captured either. Rename the build directory to '_build' to match the others, and don't delete it either, so we can keep our configure/test logs. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5689>
Diffstat (limited to '.gitlab-ci/windows')
-rw-r--r--.gitlab-ci/windows/mesa_build.ps13
1 files changed, 1 insertions, 2 deletions
diff --git a/.gitlab-ci/windows/mesa_build.ps1 b/.gitlab-ci/windows/mesa_build.ps1
index 76cf601f1ee..57a83bbf11e 100644
--- a/.gitlab-ci/windows/mesa_build.ps1
+++ b/.gitlab-ci/windows/mesa_build.ps1
@@ -4,12 +4,11 @@ Write-Host "Refreshing Windows TLS CA cache"
Get-Date
Write-Host "Compiling Mesa"
-$builddir = New-Item -ItemType Directory -Name "build"
+$builddir = New-Item -ItemType Directory -Name "_build"
Push-Location $builddir.FullName
cmd.exe /C 'C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && meson --default-library=shared --buildtype=release -Db_ndebug=false -Db_vscrt=mt --cmake-prefix-path="C:\llvm-10" --pkg-config-path="C:\llvm-10\lib\pkgconfig;C:\llvm-10\share\pkgconfig;C:\spirv-tools\lib\pkgconfig" -Dllvm=true -Dshared-llvm=false -Dgallium-drivers=swrast -Dbuild-tests=true && ninja test'
$buildstatus = $?
Pop-Location
-Remove-Item -Recurse -Path $builddir
Get-Date