Replace bat files with NUKE build#3682
Conversation
|
@RicoSuter do you think we could change like this in as part of larger changes that are currently in motion. This would modernize and enable new scenarios, like testing on Linux. |
|
I've added basic sample how to add GitHub actions workflow generation ( I'm afraid I cannot test these as these require a bit more permissions in the repo for GitHub to allow running such code. |
|
Ok, ill have a look. Can i merge this PR and then continue with that? |
|
Yes please, ping me if there's anything problematic you find. |
|
The GitHub actions should light up after the merge, normal contributors cannot trigger workflow changes via PRs as it's a security risk. |
|
@RicoSuter I've pushed couple PRs to fix two issues found by CI runs |
While getting Fluid to build I was once again faced with all sorts of build script problems, like location of MSBuild/Visual Studio etc (required VS developer command prompt to have PATH right).
NUKE allows you to create build script using plain C# with great API and reduced risk of typos. Library also gives you full power of C# (loops, functions, encapsulation, variables and typing). It's really easy to adopt if you know C#.
What I offer with this PR:
_build.csprojBuild.cs, should be quite readablebuild\*.batfiles to call relevant NUKE targets, new targets inBuild.cscontain the old bat file logicbuild.cmdandbuild.shat repository root, easy to get started (Linux build possibility!)FUTURE
Targets can be invoked using Windows command line with
build.cmd(default compile),build.cmd unittest(UnitTests.bat functionality), configuration is automaticallyReleasein CI environment (not a local build).