diff options
author | Brad King <brad.king@kitware.com> | 2021-01-21 16:38:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-21 16:49:49 (GMT) |
commit | 5e5fecb7bca1a351df2c30b63d4d5a7194aa773f (patch) | |
tree | 469358642387bf9c5b624fc9b4882857d71a3d78 | |
parent | 6c34835a267cc75b325db0e98817b194e392064f (diff) | |
download | CMake-5e5fecb7bca1a351df2c30b63d4d5a7194aa773f.zip CMake-5e5fecb7bca1a351df2c30b63d4d5a7194aa773f.tar.gz CMake-5e5fecb7bca1a351df2c30b63d4d5a7194aa773f.tar.bz2 |
ci: speed up cmake and ninja downloads on Windows
Invoke-WebRequest uses a progress bar by default, but we have no
interactive session anyway. Turn it off to speed up downloads.
-rwxr-xr-x | .gitlab/ci/cmake.ps1 | 1 | ||||
-rwxr-xr-x | .gitlab/ci/ninja.ps1 | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab/ci/cmake.ps1 b/.gitlab/ci/cmake.ps1 index 3b42cae..80fd0cd 100755 --- a/.gitlab/ci/cmake.ps1 +++ b/.gitlab/ci/cmake.ps1 @@ -7,6 +7,7 @@ $tarball = "$filename.zip" $outdir = $pwd.Path $outdir = "$outdir\.gitlab" +$ProgressPreference = 'SilentlyContinue' Invoke-WebRequest -Uri "https://github.com/Kitware/CMake/releases/download/v$version/$tarball" -OutFile "$outdir\$tarball" $hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256 if ($hash.Hash -ne $sha256sum) { diff --git a/.gitlab/ci/ninja.ps1 b/.gitlab/ci/ninja.ps1 index 91f8b02..cd08954 100755 --- a/.gitlab/ci/ninja.ps1 +++ b/.gitlab/ci/ninja.ps1 @@ -7,6 +7,7 @@ $tarball = "$filename.zip" $outdir = $pwd.Path $outdir = "$outdir\.gitlab" +$ProgressPreference = 'SilentlyContinue' Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/download/v$version/$tarball" -OutFile "$outdir\$tarball" $hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256 if ($hash.Hash -ne $sha256sum) { |