Skip to content

Commit

Permalink
self contained build
Browse files Browse the repository at this point in the history
  • Loading branch information
Crauzer committed Apr 12, 2023
1 parent 6263e66 commit 77bc7c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
"Compile",
"Publish",
"Release",
"Restore",
"Test"
"Restore"
]
}
},
Expand All @@ -95,8 +94,7 @@
"Compile",
"Publish",
"Release",
"Restore",
"Test"
"Restore"
]
}
},
Expand Down
14 changes: 2 additions & 12 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,9 @@ class Build : NukeBuild
);
});

Target Test =>
_ =>
_.DependsOn(Compile)
.Executes(() =>
{
DotNetTest(
s =>
s.SetProjectFile(Solution).SetConfiguration(Configuration).EnableNoRestore().EnableNoBuild()
);
});

Target Publish =>
_ =>
_.DependsOn(Test)
_.DependsOn(Compile)
.Requires(() => Configuration.Equals(Configuration.Release))
.Executes(() =>
{
Expand All @@ -145,6 +134,7 @@ class Build : NukeBuild
s.SetProject(Solution.GetProject("lol2gltf"))
.SetOutput(Lol2GltfPublishDirectory)
.SetConfiguration(Configuration)
.EnableSelfContained()
.EnablePublishSingleFile()
.EnableNoRestore()
.SetVersion(MinVer.Version)
Expand Down

0 comments on commit 77bc7c4

Please sign in to comment.