mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-12 18:19:11 -06:00
Merge branch 'backport-3.18-ci-wix-download' into release-3.18
Merge-request: !5725
This commit is contained in:
@@ -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"
|
|||||||
|
|
||||||
$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) {
|
||||||
|
|||||||
18
.gitlab/ci/wix.ps1
Executable file
18
.gitlab/ci/wix.ps1
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
$erroractionpreference = "stop"
|
||||||
|
|
||||||
|
$release = "wix3112rtm"
|
||||||
|
$sha256sum = "2C1888D5D1DBA377FC7FA14444CF556963747FF9A0A289A3599CF09DA03B9E2E"
|
||||||
|
$filename = "wix311-binaries"
|
||||||
|
$tarball = "$filename.zip"
|
||||||
|
|
||||||
|
$outdir = $pwd.Path
|
||||||
|
$outdir = "$outdir\.gitlab"
|
||||||
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/$release/$tarball" -OutFile "$outdir\$tarball"
|
||||||
|
$hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256
|
||||||
|
if ($hash.Hash -ne $sha256sum) {
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||||
|
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir\wix\bin")
|
||||||
@@ -72,9 +72,12 @@
|
|||||||
## Windows-specific scripts
|
## Windows-specific scripts
|
||||||
|
|
||||||
.before_script_windows: &before_script_windows
|
.before_script_windows: &before_script_windows
|
||||||
|
- Invoke-Expression -Command .gitlab/ci/wix.ps1
|
||||||
- Invoke-Expression -Command .gitlab/ci/cmake.ps1
|
- Invoke-Expression -Command .gitlab/ci/cmake.ps1
|
||||||
- Invoke-Expression -Command .gitlab/ci/ninja.ps1
|
- Invoke-Expression -Command .gitlab/ci/ninja.ps1
|
||||||
- $pwdpath = $pwd.Path
|
- $pwdpath = $pwd.Path
|
||||||
|
- Set-Item -Force -Path "env:WIX" -Value "$pwdpath\.gitlab\wix"
|
||||||
|
- (& "$env:WIX\bin\light.exe" -help) | Select -First 1
|
||||||
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$pwdpath\.gitlab\cmake\bin;$env:PATH"
|
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$pwdpath\.gitlab\cmake\bin;$env:PATH"
|
||||||
- cmake --version
|
- cmake --version
|
||||||
- ninja --version
|
- ninja --version
|
||||||
|
|||||||
Reference in New Issue
Block a user