Files
sbox-public/engine/Tools/SboxBuild/Steps/BuildVpc.cs
Lorenz Junglas 8bb48bac56 Move Pipelines out of SboxBuild into GitHub yml
Allows us to get rid of a ton of abstraction in SboxBuild, and gets rid of a lot of GitHub API plumbing.
I feel like now that our workflows are more complex it's nicer to just use GitHub directly rather than having our own pipeline abstraction in SboxBuild.
This way we get nicer logging and error reporting, which we can\t achieve through GitHub API.
2026-06-19 13:49:41 +01:00

29 lines
581 B
C#

using static Facepunch.Constants;
namespace Facepunch.Steps;
/// <summary>
/// Step to build the VPC tool from source. Only needed on non-Windows platforms.
/// </summary>
internal class BuildVpc
{
internal ExitCode Run()
{
if ( OperatingSystem.IsWindows() )
{
Log.Info( "Skipping VPC build on Windows (prebuilt binary used)." );
return ExitCode.Success;
}
Log.Info( "Building VPC..." );
if ( !Utility.RunProcess( "make", $"-C src/utils/vpc/vpc -j" ) )
{
Log.Error( "VPC build failed." );
return ExitCode.Failure;
}
return ExitCode.Success;
}
}