Skip to content

Commit

Permalink
Merge pull request #1483 from DuendeSoftware/dom/cleanup-build-script
Browse files Browse the repository at this point in the history
Cleanup build script
  • Loading branch information
josephdecock authored Dec 12, 2023
2 parents b7d07eb + 65b3f6f commit 3b5bd18
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ private static class Targets
public const string CodeQL = "codeql";
public const string Test = "test";
public const string Pack = "pack";
public const string SignBinary = "sign-binary";
public const string SignPackage = "sign-package";
}

Expand All @@ -50,15 +49,9 @@ static async Task Main(string[] args)

Target(Targets.CodeQL, () =>
{
//Run("dotnet", $"clean {solutionCodeQL} -c Release -v m --nologo");
Run("dotnet", $"build {solutionCodeQL} -c Release --nologo");
});

Target(Targets.SignBinary, DependsOn(Targets.Build, Targets.RestoreTools), () =>
{
// sign all dlls
});

Target(Targets.Test, DependsOn(Targets.Build), () =>
{
Run("dotnet", $"test {solution} -c Release --no-build --nologo");
Expand Down Expand Up @@ -94,8 +87,7 @@ static async Task Main(string[] args)
});

Target("default", DependsOn(Targets.Test, Targets.Pack));

Target("sign", DependsOn(Targets.SignBinary, Targets.Test, Targets.SignPackage));
Target("sign", DependsOn(Targets.Test, Targets.SignPackage));

await RunTargetsAndExitAsync(args, ex => ex is SimpleExec.ExitCodeException || ex.Message.EndsWith(envVarMissing));
}
Expand Down Expand Up @@ -127,5 +119,4 @@ private static void SignNuGet()
}
}
}
}

}

0 comments on commit 3b5bd18

Please sign in to comment.