mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
[macOS] Add Ninja (#11707)
This commit is contained in:
@@ -97,6 +97,7 @@ $utilities.AddToolVersion("pkgconf", $(Get-PKGConfVersion))
|
||||
$utilities.AddToolVersion("Unxip", $(Get-UnxipVersion))
|
||||
$utilities.AddToolVersion("yq", $(Get-YqVersion))
|
||||
$utilities.AddToolVersion("zstd", $(Get-ZstdVersion))
|
||||
$utilities.AddToolVersion("Ninja", $(Get-NinjaVersion))
|
||||
|
||||
# Tools
|
||||
$tools = $installedSoftware.AddHeader("Tools")
|
||||
|
||||
@@ -409,3 +409,7 @@ function Get-UnxipVersion {
|
||||
$unxipVersion = Run-Command "unxip --version" | Take-Part -Part 1
|
||||
return $unxipVersion
|
||||
}
|
||||
|
||||
function Get-NinjaVersion {
|
||||
return $(ninja --version)
|
||||
}
|
||||
|
||||
@@ -148,3 +148,25 @@ Describe "pkgconf" {
|
||||
"pkgconf --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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"swiftformat",
|
||||
"tcl-tk@8",
|
||||
"zstd",
|
||||
"ninja",
|
||||
"gmp",
|
||||
"yq",
|
||||
"xcbeautify",
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
"swiftformat",
|
||||
"tcl-tk@8",
|
||||
"zstd",
|
||||
"ninja",
|
||||
"gmp",
|
||||
"yq",
|
||||
"unxip",
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
"pkgconf",
|
||||
"swiftformat",
|
||||
"zstd",
|
||||
"ninja",
|
||||
"gmp",
|
||||
"yq",
|
||||
"unxip",
|
||||
|
||||
Reference in New Issue
Block a user