Skip to content

Commit

Permalink
chore: improve ci powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Jan 10, 2025
1 parent 6c5cc37 commit 5f675b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ jobs:
$installs | ForEach-Object {
if ($_.Url -ne $null) {
Log "Downloading $($_.Name) from $($_.Url)..."
$install_file = Join-Path ${{github.workspace}} (Split-Path $_.Url -Leaf)
$install_file = Join-Path '${{ github.workspace }}' (Split-Path $_.Url -Leaf)
Invoke-WebRequest -Uri $_.Url -OutFile $install_file
}
if ($_.Hash -ne $null) {
$expected_hash = if ($_.Hash -like "*.sha256") {
$hash_file = Join-Path ${{github.workspace}} (Split-Path $_.Hash -Leaf)
$hash_file = Join-Path '${{ github.workspace }}' (Split-Path $_.Hash -Leaf)
Invoke-WebRequest -Uri $_.Hash -OutFile $hash_file
(Get-Content -Path $hash_file).Trim()
} else {
Expand Down

0 comments on commit 5f675b3

Please sign in to comment.