forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to setup xmake to work via github actions
- Loading branch information
1 parent
7f3bc9d
commit 0c62578
Showing
5 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
| ||
namespace BuildScripts; | ||
|
||
[TaskName("Build DesktopVK")] | ||
public sealed class BuildDesktopVKTask : FrostingTask<BuildContext> | ||
{ | ||
// TEMP: Until OSX and Linux is setup to work. | ||
public override bool ShouldRun(BuildContext context) => context.IsRunningOnWindows(); | ||
|
||
public override void Run(BuildContext context) | ||
{ | ||
int exit = context.XMake(@"src\monogame\", "f -m debug -y"); | ||
if (exit < 0) | ||
throw new Exception($"Setting debug config failed! {exit}"); | ||
|
||
exit = context.XMake(@"src\monogame\", "-r"); | ||
if (exit < 0) | ||
throw new Exception($"Rebuild debug failed! {exit}"); | ||
|
||
exit = context.XMake(@"src\monogame\", "f -m release -y"); | ||
if (exit < 0) | ||
throw new Exception($"Setting release config failed! {exit}"); | ||
|
||
exit = context.XMake(@"src\monogame\", "-r"); | ||
if (exit < 0) | ||
throw new Exception($"Rebuild release failed! {exit}"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters