Commit 30e25f45 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'ci-faster-ps1-downloads'

9ca2fc19

 ci: improve PowerShell download performance
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !833
parents 77690c76 9ca2fc19
...@@ -7,6 +7,7 @@ $tarball = "$filename.zip" ...@@ -7,6 +7,7 @@ $tarball = "$filename.zip"
$outdir = $pwd.Path $outdir = $pwd.Path
$outdir = "$outdir\.gitlab" $outdir = "$outdir\.gitlab"
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest -Uri "https://github.com/Kitware/CMake/releases/download/v$version/$tarball" -OutFile "$outdir\$tarball" Invoke-WebRequest -Uri "https://github.com/Kitware/CMake/releases/download/v$version/$tarball" -OutFile "$outdir\$tarball"
$hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256 $hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256
if ($hash.Hash -ne $sha256sum) { if ($hash.Hash -ne $sha256sum) {
......
...@@ -7,6 +7,7 @@ $tarball = "$filename.zip" ...@@ -7,6 +7,7 @@ $tarball = "$filename.zip"
$outdir = $pwd.Path $outdir = $pwd.Path
$outdir = "$outdir\.gitlab" $outdir = "$outdir\.gitlab"
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/download/v$version/$tarball" -OutFile "$outdir\$tarball" Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/download/v$version/$tarball" -OutFile "$outdir\$tarball"
$hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256 $hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256
if ($hash.Hash -ne $sha256sum) { if ($hash.Hash -ne $sha256sum) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment