CMake/.gitlab/ci/ninja-nightly.ps1
Brad King 7f9817b7cb Remove unnecessary executable permission from .ps1 scripts
Powershell scripts cannot be launched as commands on Windows.
They must be run through the `powershell` or `pwsh` tool.
2024-04-30 09:33:44 -04:00

10 lines
412 B
PowerShell

$erroractionpreference = "stop"
Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
Set-Location -Path ".gitlab"
git clone https://github.com/ninja-build/ninja.git ninja-src
cmake -S ninja-src -B ninja-src/build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build ninja-src/build --target ninja
Move-Item -Path "ninja-src\build\ninja.exe" -Destination . -Force
Remove-Item "ninja-src" -Recurse -Force