diff options
author | Brad King <brad.king@kitware.com> | 2023-09-25 15:10:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-25 16:27:45 (GMT) |
commit | f8fa4f1ad7b718cc3724f5015d3fd4374cff75d4 (patch) | |
tree | 241b25dbf7ba63a090d9e568956f79dbac5ef65f /.gitlab/ci/orangec.ps1 | |
parent | 531b4fe64377b2e2ce5918535df389be0a754b04 (diff) | |
download | CMake-f8fa4f1ad7b718cc3724f5015d3fd4374cff75d4.zip CMake-f8fa4f1ad7b718cc3724f5015d3fd4374cff75d4.tar.gz CMake-f8fa4f1ad7b718cc3724f5015d3fd4374cff75d4.tar.bz2 |
ci: Add OrangeC 6.73.1 nightly CI job
Diffstat (limited to '.gitlab/ci/orangec.ps1')
-rwxr-xr-x | .gitlab/ci/orangec.ps1 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitlab/ci/orangec.ps1 b/.gitlab/ci/orangec.ps1 new file mode 100755 index 0000000..2201e12 --- /dev/null +++ b/.gitlab/ci/orangec.ps1 @@ -0,0 +1,24 @@ +$erroractionpreference = "stop" + +if ("$env:CMAKE_CONFIGURATION".Contains("orangec6.73.1")) { + # OrangeC 6.73.1 + $archive = "ZippedBinaries6738.zip" + $release = "Orange-C-v6.73.1" + $sha256sum = "29BC506AB105B2BF1002129C37826B2153DF1C8D0F22B9A2C38ACA3FB72A5B89" +} else { + throw ('unknown CMAKE_CONFIGURATION: ' + "$env:CMAKE_CONFIGURATION") +} + +$outdir = $pwd.Path +$outdir = "$outdir\.gitlab" +$ProgressPreference = 'SilentlyContinue' +Invoke-WebRequest -Uri "https://github.com/LADSoft/OrangeC/releases/download/$release/$archive" -OutFile "$outdir\$archive" +$hash = Get-FileHash "$outdir\$archive" -Algorithm SHA256 +if ($hash.Hash -ne $sha256sum) { + exit 1 +} + +Add-Type -AssemblyName System.IO.Compression.FileSystem +[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$archive", "$outdir") +# The archive contains directory 'orangec', placed at '$outdir\orangec'. +Remove-Item "$outdir\$archive" |