mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Windows] Add Ninja (#11737)
This commit is contained in:
@@ -103,3 +103,31 @@ Describe "ImageMagick" {
|
||||
"magick -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Ninja" {
|
||||
BeforeAll {
|
||||
$ninjaProjectPath = $(Join-Path $env:TEMP_DIR "ninjaproject")
|
||||
New-item -Path $ninjaProjectPath -ItemType Directory -Force
|
||||
@'
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(NinjaTest NONE)
|
||||
'@ | Out-File -FilePath "$ninjaProjectPath/CMakeLists.txt" -Encoding utf8
|
||||
|
||||
$ninjaProjectBuildPath = $(Join-Path $ninjaProjectPath "build")
|
||||
New-item -Path $ninjaProjectBuildPath -ItemType Directory -Force
|
||||
Set-Location $ninjaProjectBuildPath
|
||||
}
|
||||
|
||||
It "Make a simple ninja project" {
|
||||
"cmake -GNinja $ninjaProjectPath" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "build.ninja file should exist" {
|
||||
$buildFilePath = $(Join-Path $ninjaProjectBuildPath "build.ninja")
|
||||
$buildFilePath | Should -Exist
|
||||
}
|
||||
|
||||
It "Ninja" {
|
||||
"ninja --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user