From 7158c7fe58b1bf264db1e532298ed312186ceddc Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Wed, 4 Sep 2024 23:07:12 +0100 Subject: [PATCH] Add -SkipCompress option to Store-Symbols.ps1 --- CI/Store-Symbols.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CI/Store-Symbols.ps1 b/CI/Store-Symbols.ps1 index 11938fa4b4..53751213b8 100644 --- a/CI/Store-Symbols.ps1 +++ b/CI/Store-Symbols.ps1 @@ -1,3 +1,7 @@ +param ( + [switch] $SkipCompress +) + $ErrorActionPreference = "Stop" if (-Not (Test-Path CMakeCache.txt)) @@ -67,7 +71,12 @@ $artifacts = $artifacts | Where-Object { Test-Path $_ } 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) { Write-Error "Command exited with code $LASTEXITCODE" }