[GitHub CI] Caching (#772)

This commit is contained in:
Connection Refused
2021-10-16 09:40:51 +08:00
committed by GitHub
parent 1a445104c2
commit d31981bed2
10 changed files with 165 additions and 95 deletions

13
RouteHelper/sha256.ps1 Normal file
View File

@@ -0,0 +1,13 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
$ms = [System.IO.MemoryStream]::new();
$wr = [System.IO.StreamWriter]::new($ms);
Get-ChildItem -Path '.' -File | ForEach-Object {
$name=$_.Name
$wr.Write((Get-FileHash -Path ".\$name" -Algorithm SHA256).Hash.ToLower())
}
$ms.Position = 0
Write-Output (Get-FileHash -InputStream $ms).Hash.ToLower()
Pop-Location