-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
License Activation fixes and Github Annotations (#590)
* Ensure serial is prioritized * Add compile listener to create github annotations * Update node modules * Don't build ubuntu on PR as secrets are now needed. Update PR template to request an example successful run. Remove 32bit windows build. Build on push to any branch * Update activation to use blank project * Ensure exceptions get annotated as well * More robust console printing * Update test project * Build iOS test on macos to verify burst functionality. Add annotation for license activation error. Fix unity version test. Remove minification from android * Improve license checks * Mask partially redacted serial in addition to full serial * Add retry logic to ubuntu builds * Allow dirty build on retry * Bump unity version
- Loading branch information
1 parent
7afabe7
commit caa0a81
Showing
45 changed files
with
4,702 additions
and
3,356 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
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
36 changes: 36 additions & 0 deletions
36
dist/default-build-script/Assets/Editor/UnityBuilderAction/Reporting/CompileListener.cs
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,36 @@ | ||
using System; | ||
using UnityEngine; | ||
using UnityEditor; | ||
|
||
namespace UnityBuilderAction.Reporting | ||
{ | ||
[InitializeOnLoad] | ||
static class CompileListener | ||
{ | ||
static CompileListener() | ||
{ | ||
if (Application.isBatchMode) | ||
{ | ||
Application.logMessageReceived += Application_logMessageReceived; | ||
} | ||
} | ||
|
||
private static void Application_logMessageReceived(string condition, string stackTrace, LogType type) | ||
{ | ||
string prefix = ""; | ||
switch (type) | ||
{ | ||
case LogType.Error: | ||
prefix = "error"; | ||
break; | ||
case LogType.Warning: | ||
prefix = "warning"; | ||
break; | ||
case LogType.Exception: | ||
prefix = "error"; | ||
break; | ||
} | ||
Console.WriteLine($"{Environment.NewLine}::{prefix} ::{condition}{Environment.NewLine}{stackTrace}"); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
dist/default-build-script/Assets/Editor/UnityBuilderAction/Reporting/CompileListener.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.