diff --git a/common/Test-UpToDate.ps1 b/common/Test-UpToDate.ps1 index e0b1c31..b2739e6 100644 --- a/common/Test-UpToDate.ps1 +++ b/common/Test-UpToDate.ps1 @@ -6,7 +6,7 @@ param ( [switch] $GenerateResultKey, [string] $CacheKeyFile = "$RepoRoot/.github/cache-key.json", [string] $ResultKeyFile = "$ArtifactsDirectory/cache-key.json", - [string] $CacheVersion = 'v1' + [string] $CacheVersion = 'v2' ) $ErrorActionPreference = 'Stop' diff --git a/linux/prepare-artifacts.ps1 b/linux/prepare-artifacts.ps1 index ff60e12..1e77fd5 100644 --- a/linux/prepare-artifacts.ps1 +++ b/linux/prepare-artifacts.ps1 @@ -13,7 +13,7 @@ if ($SkipUpToDateCheck -or !$(& $CheckUpToDateScript)) { if (!(Test-Path -LiteralPath $TargetLocation -Type Container)) { New-Item -Type Directory $TargetLocation } - Copy-Item "$InstallPrefix/lib/*" $TargetLocation + Copy-Item "$InstallPrefix/lib/*" -Exclude '*.a' $TargetLocation & $CheckUpToDateScript -GenerateResultKey } else { Write-Host 'The build result is up to date.'