mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Add -SkipCompress option to Store-Symbols.ps1
This commit is contained in:
parent
b3677d07fd
commit
7158c7fe58
1 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
param (
|
||||||
|
[switch] $SkipCompress
|
||||||
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
if (-Not (Test-Path CMakeCache.txt))
|
if (-Not (Test-Path CMakeCache.txt))
|
||||||
|
@ -67,7 +71,12 @@ $artifacts = $artifacts | Where-Object { Test-Path $_ }
|
||||||
|
|
||||||
Write-Output "Storing symbols..."
|
Write-Output "Storing symbols..."
|
||||||
|
|
||||||
symstore-venv\Scripts\symstore --compress --skip-published .\SymStore @artifacts
|
$optionalArgs = @()
|
||||||
|
if (-not $SkipCompress) {
|
||||||
|
$optionalArgs += "--compress"
|
||||||
|
}
|
||||||
|
|
||||||
|
symstore-venv\Scripts\symstore $optionalArgs --skip-published .\SymStore @artifacts
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Write-Error "Command exited with code $LASTEXITCODE"
|
Write-Error "Command exited with code $LASTEXITCODE"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue