mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
[Ubuntu] Add Ninja (#11706)
This commit is contained in:
@@ -411,3 +411,25 @@ Describe "Kotlin" {
|
||||
"kotlinc-js -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Ninja" {
|
||||
New-item -Path "/tmp/ninjaproject" -ItemType Directory -Force
|
||||
Set-Location '/tmp/ninjaproject'
|
||||
@'
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(NinjaTest NONE)
|
||||
'@ | Out-File -FilePath "./CMakeLists.txt"
|
||||
|
||||
It "Make a simple ninja project" {
|
||||
"cmake -GNinja /tmp/ninjaproject" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "build.ninja file should exist" {
|
||||
$buildFilePath = Join-Path "/tmp/ninjaproject" "build.ninja"
|
||||
$buildFilePath | Should -Exist
|
||||
}
|
||||
|
||||
It "Ninja" {
|
||||
"ninja --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user