Skip to content

Commit

Permalink
Add -SkipCompress option to Store-Symbols.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyOldName3 committed Sep 4, 2024
1 parent b3677d0 commit 7158c7f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CI/Store-Symbols.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
param (
[switch] $SkipCompress
)

$ErrorActionPreference = "Stop"

if (-Not (Test-Path CMakeCache.txt))
Expand Down Expand Up @@ -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"
}
Expand Down

0 comments on commit 7158c7f

Please sign in to comment.