mirror of
https://github.com/Z3Prover/z3
synced 2025-08-02 17:30:23 +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:
parent
e2eaf4ac24
commit
62fa8cc12f
2 changed files with 22 additions and 3 deletions
|
@ -452,6 +452,15 @@ stages:
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'NuGet32'
|
artifactName: 'NuGet32'
|
||||||
targetPath: tmp
|
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
|
- task: GitHubRelease@1
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
@ -454,6 +454,16 @@ stages:
|
||||||
inputs:
|
inputs:
|
||||||
artifact: 'NuGet32'
|
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
|
- task: GitHubRelease@1
|
||||||
inputs:
|
inputs:
|
||||||
gitHubConnection: Z3Prover
|
gitHubConnection: Z3Prover
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue