Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ jobs:
Copy-Item "target/x86_64-pc-windows-msvc/release/magpie.exe" -Destination "magpie.exe"
Compress-Archive -Path "magpie.exe" -DestinationPath $asset -Force
$hash = (Get-FileHash -Algorithm SHA256 $asset).Hash.ToLower()
"$hash $asset" | Set-Content -Encoding ascii "$asset.sha256"
# WriteAllText with an explicit LF, NOT Set-Content: Set-Content
# ends the line CRLF, and `shasum -c`/`sha256sum -c` on unix then
# look for a filename ending in a literal \r ("No such file") —
# caught verifying the v0.1.0 release assets.
[IO.File]::WriteAllText("$asset.sha256", "$hash $asset`n")
Write-Host "Built $asset — sha256 $hash"

- uses: actions/upload-artifact@v4
Expand Down
Loading