Skip to content

Commit

Permalink
chore: use powershell in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Jan 10, 2025
1 parent 840ad4e commit 46d4ee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
$installs | ForEach-Object {
Log "Downloading $($_.Name) from $($_.Url)..."
$install_file = Join-Path ${{github.workspace}} (Split-Path $_.Url -Leaf)
Invoke-WebRequest -Uri $_.Url -OutFile
Invoke-WebRequest -Uri $_.Url -OutFile $install_file
if ($_.Hash -ne $null) {
$expected_hash = if ($_.Hash -like "*.sha256") {
Expand All @@ -81,6 +81,7 @@ jobs:
Log "$($_.Name) hash verified successfully."
} else {
Log "Hash mismatch for $($_.Name). Expected: $expected_hash, Got: $downloaded_hash" -Level "ERROR"
exit 1
}
} else {
Log "No hash specified for $($_.Name). Skipping hash verification."
Expand Down

0 comments on commit 46d4ee8

Please sign in to comment.