File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ option(FIREBASE_INCLUDE_STORAGE
52
52
option (FIREBASE_UNITY_BUILD_TESTS
53
53
"Enable the Firebase Unity Build Tests." OFF )
54
54
55
+ # This should only be enabled by the GitHub Action build script.
56
+ option (FIREBASE_GITHUB_ACTION_BUILD
57
+ "Indicates that this build was created from a GitHub Action" OFF )
58
+
55
59
# These options allow selecting what built outputs go into the CPack zip file
56
60
# as we merge the different platform zip's together for unity package
57
61
# For example: only packing dotnet libraries on linux builds
Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ internal class VersionInfo {
22
22
/// @brief Retrieves the Firebase Unity SDK version number as a string.
23
23
// "@FIREBASE_UNITY_SDK_VERSION@" is replaced at build time.
24
24
internal static string SdkVersion { get { return "@FIREBASE_UNITY_SDK_VERSION@" ; } }
25
+
26
+ /// @brief Retrieves a string indicating whether the SDK was built on github.
27
+ internal static string BuildSource {
28
+ get {
29
+ #if FIREBASE_GITHUB_ACTION_BUILD
30
+ return "github_action_built" ;
31
+ #else
32
+ return "custom_built" ;
33
+ #endif
34
+ }
35
+ }
25
36
}
26
37
27
38
} // namespace Firebase
Original file line number Diff line number Diff line change @@ -903,6 +903,9 @@ static firebase::AppOptions* AppOptionsLoadFromJsonConfig(const char* config) {
903
903
RegisterLibraryInternal (
904
904
libraryPrefix + " -ver" ,
905
905
Firebase.Platform .PlatformInformation .RuntimeVersion );
906
+ // fire-(unity|mono)/<github-action-built|custom_built>
907
+ RegisterLibraryInternal (
908
+ libraryPrefix + " -buildsrc" , Firebase.VersionInfo .BuildSource );
906
909
}
907
910
// Cache the name so that it can be accessed after the app is disposed.
908
911
newProxy.name = newProxy.NameInternal ;
You can’t perform that action at this time.
0 commit comments