3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-31 08:23:17 +00:00

Add SHA256 hash generation for ZIP archives in nightly and release builds

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-11 14:15:15 +00:00
parent e2eaf4ac24
commit 62fa8cc12f
2 changed files with 22 additions and 3 deletions

View file

@ -358,7 +358,7 @@ stages:
displayName: 'Download Win32 Build'
inputs:
artifactName: 'WindowsBuild-x86'
targetPath: $(Agent.TempDirectory)
targetPath: $(Agent.TempDirectory)
- task: DownloadPipelineArtifact@2
displayName: 'Download ManyLinux Build'
inputs:
@ -452,6 +452,15 @@ stages:
inputs:
artifactName: 'NuGet32'
targetPath: tmp
- script: |
cd tmp
for file in *.zip; do
if [ -f "$file" ]; then
sha256sum "$file" > "$file.sha256"
echo "Generated SHA256 for $file"
fi
done
displayName: 'Generate SHA256 hashes for ZIP files'
- task: GitHubRelease@1
continueOnError: true
inputs:

View file

@ -448,12 +448,22 @@ stages:
displayName: 'Download NuGet64 Package'
inputs:
artifact: 'NuGet'
path: $(Agent.TempDirectory)
path: $(Agent.TempDirectory)
- task: DownloadPipelineArtifact@2
displayName: 'Download NuGet32 Package'
inputs:
artifact: 'NuGet32'
path: $(Agent.TempDirectory)
path: $(Agent.TempDirectory)
- powershell: |
$files = Get-ChildItem -Path "$(Agent.TempDirectory)" -Filter "*.zip"
foreach ($file in $files) {
$hash = Get-FileHash -Path $file.FullName -Algorithm SHA256
$hashString = $hash.Hash.ToLower() + " " + $file.Name
$hashFile = $file.FullName + ".sha256"
Set-Content -Path $hashFile -Value $hashString
Write-Host "Generated SHA256 for $($file.Name)"
}
displayName: 'Generate SHA256 hashes for ZIP files'
- task: GitHubRelease@1
inputs:
gitHubConnection: Z3Prover