blob: 754521bb88703f43eaa45aa98830387b5d46e25e [file] [log] [blame]
$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"
}