[GitHub CI] Update build.yml

This commit is contained in:
Connection Refused
2021-10-16 10:56:03 +08:00
parent d31981bed2
commit 493476522d
5 changed files with 73 additions and 50 deletions

View File

@@ -1,13 +0,0 @@
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