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 b20b6e1 commit f7983b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
Url = 'https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe';
Hash = 'https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe.sha256';
Action = { & './rustup-init.exe' --default-host aarch64-pc-windows-msvc --default-toolchain nightly -y }},
@{ Name = 'LLVM 19.1.5'; Url = $null;
@{ Name = 'LLVM 19.1.5'; Url = 'LLVM-19.1.5-woa64.exe';
Hash = '63D479C19C3908F8C973331EDC9B576485EAB6AB0809F58C79DF5D209FDD8F96';
Action = { & './LLVM-19.1.5-woa64.exe' /S }},
@{ Name = 'Git 2.48.0-rc1';
Expand All @@ -70,10 +70,13 @@ jobs:
$deps | ForEach-Object {
$dep = $_
if ($dep.Url -ne $null) {
if ($dep.Url -match "^https?://") {
# URL is an HTTPS URL, handle it by downloading
Log "Downloading $($dep.Name) from $($dep.Url)..."
$install_file = Join-Path '${{ github.workspace }}' (Split-Path $dep.Url -Leaf)
$install_file = Join-Path "${{ github.workspace }}" (Split-Path $dep.Url -Leaf)
Invoke-WebRequest -Uri $dep.Url -OutFile $install_file
} else {
$install_file = Join-Path "${{ github.workspace }}" $dep.Url
}
if ($dep.Hash -ne $null) {
Expand Down

0 comments on commit f7983b5

Please sign in to comment.