mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
Merge topic 'ci-windows-tmpdir'
f51d809b44 ci: Place temporary files inside job directory on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9272
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
/sccache*
|
||||
/swift
|
||||
/ticlang
|
||||
/tmp
|
||||
/unstable-jom*
|
||||
/watcom
|
||||
/wix*
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName
|
||||
|
||||
# Place temporary files inside job directory.
|
||||
$tmp = New-Item -Force -ItemType Directory -Path "$pwd\.gitlab\tmp"
|
||||
$tmp = (New-Object -ComObject Scripting.FileSystemObject).GetFolder("$tmp").ShortPath
|
||||
Set-Item -Force -Path "env:TEMP" -Value "$tmp"
|
||||
Set-Item -Force -Path "env:TMP" -Value "$tmp"
|
||||
$tmp = $null
|
||||
|
||||
if (Test-Path -Path ".gitlab/ci/env_$env:CMAKE_CONFIGURATION.ps1" -PathType Leaf) {
|
||||
. ".gitlab/ci/env_$env:CMAKE_CONFIGURATION.ps1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user