From 46d4ee8ca0ffecacdec3679142cd31a11e835cfb Mon Sep 17 00:00:00 2001 From: oberrich Date: Fri, 10 Jan 2025 08:04:07 +0100 Subject: [PATCH] chore: use powershell in ci --- .github/workflows/rust.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8b03c04..0c93753 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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") { @@ -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."