Skip to content

Commit 5bff687

Browse files
committed
test CMake
1 parent 47c4aa3 commit 5bff687

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

md.Nuke.Cola/Tooling/CMakeTasks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public static ValueOrError<Tool> TryGetCMake(string version = LatestVersion) =>
6565
$"https://github.com/Kitware/CMake/releases/download/v{LatestVersion}/{archiveName}",
6666
downloadPath
6767
);
68+
69+
Log.Information("Extracting CMake {0}", subfolderName);
6870
if (archiveName.EndsWithOrdinalIgnoreCase(".zip"))
6971
{
7072
downloadPath.UnZipTo(localPath);

tests/TestBuild/Build.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ public class Build : NukeBuild
5757
Log.Information("Linkdirs: {0}", conanSpdlogInfo[conanSpdlogSpec]?["fetchinfo"]?["linkdirs"]?.Value);
5858
});
5959

60+
public Target TestCMake => _ => _
61+
.Executes(() =>
62+
{
63+
CMakeTasks.CMake("--version");
64+
});
65+
6066
public Target BuildTestProgram => _ => _
6167
.Executes(() =>
6268
{

0 commit comments

Comments
 (0)