diff options
author | Brad King <brad.king@kitware.com> | 2022-11-10 21:20:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-11 20:05:30 (GMT) |
commit | 93a5d89b420975f18ce570fceb2110a0db306ae2 (patch) | |
tree | f12a9756e79d984e4c35237dbf6e7de197c28db9 | |
parent | 1ccffcf0ea1b0d49fe723bc7d08083f5767c1e20 (diff) | |
download | CMake-93a5d89b420975f18ce570fceb2110a0db306ae2.zip CMake-93a5d89b420975f18ce570fceb2110a0db306ae2.tar.gz CMake-93a5d89b420975f18ce570fceb2110a0db306ae2.tar.bz2 |
ci: Teach cmake download script on Windows to branch on host architecture
-rwxr-xr-x | .gitlab/ci/cmake.ps1 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.gitlab/ci/cmake.ps1 b/.gitlab/ci/cmake.ps1 index 98aeae3..ad2e460 100755 --- a/.gitlab/ci/cmake.ps1 +++ b/.gitlab/ci/cmake.ps1 @@ -1,8 +1,15 @@ $erroractionpreference = "stop" $version = "3.24.1" -$sha256sum = "C1B17431A16337D517F7BA78C7067B6F143A12686CB8087F3DD32F3FA45F5AAE" -$filename = "cmake-$version-windows-x86_64" + +if ("$env:PROCESSOR_ARCHITECTURE" -eq "AMD64") { + $sha256sum = "C1B17431A16337D517F7BA78C7067B6F143A12686CB8087F3DD32F3FA45F5AAE" + $platform = "windows-x86_64" +} else { + throw ('unknown PROCESSOR_ARCHITECTURE: ' + "$env:PROCESSOR_ARCHITECTURE") +} + +$filename = "cmake-$version-$platform" $tarball = "$filename.zip" $outdir = $pwd.Path |