mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-28 01:58:11 -07:00
github: workflow improvements (#3032)
* github: compact build: status reporting step * github: build: matrix strategy * debugging * github: added version_token to /uploadfiles request * github: reworked main build flow * github: suppressed non-zero cp status * github: build: fixed comment lookup; experimental changes to apps build order * github: removed summary step for compact builds; united map analyzer steps * fbt: added get_apiversion target; moved ext apps processing logic to AppBuildset * ufbt: added missing global * fbt: Moved incompatible app list to firmware config output * fbt: cleaner extapps processing * github: build: added automation for SDK publishing
This commit is contained in:
+10
-4
@@ -8,6 +8,9 @@ from fbt_extra.util import (
|
||||
link_elf_dir_as_latest,
|
||||
)
|
||||
|
||||
from fbt.sdk.cache import LazySdkVersionLoader
|
||||
|
||||
|
||||
Import("ENV", "fw_build_meta")
|
||||
|
||||
# Building initial C environment for libs
|
||||
@@ -71,6 +74,8 @@ env = ENV.Clone(
|
||||
},
|
||||
FW_API_TABLE=None,
|
||||
_APP_ICONS=None,
|
||||
APPS=_.split(",") if (_ := GetOption("extra_int_apps")) else [],
|
||||
EXTRA_EXT_APPS=_.split(",") if (_ := GetOption("extra_ext_apps")) else [],
|
||||
)
|
||||
|
||||
env.PreConfigureFwEnvionment()
|
||||
@@ -125,9 +130,6 @@ if env["IS_BASE_FIRMWARE"]:
|
||||
else:
|
||||
fwenv.Append(APPS=["updater"])
|
||||
|
||||
if extra_int_apps := GetOption("extra_int_apps"):
|
||||
fwenv.Append(APPS=extra_int_apps.split(","))
|
||||
|
||||
|
||||
for app_dir, _ in fwenv["APPDIRS"]:
|
||||
app_dir_node = env.Dir("#").Dir(app_dir)
|
||||
@@ -136,7 +138,6 @@ for app_dir, _ in fwenv["APPDIRS"]:
|
||||
if isinstance(entry, FS.Dir) and not str(entry).startswith("."):
|
||||
fwenv.LoadAppManifest(entry)
|
||||
|
||||
|
||||
fwenv.PrepareApplicationsBuild()
|
||||
|
||||
# Build external apps + configure SDK
|
||||
@@ -148,6 +149,11 @@ if env["IS_BASE_FIRMWARE"]:
|
||||
)
|
||||
fw_artifacts.append(fwenv["FW_EXTAPPS"].sdk_tree)
|
||||
|
||||
fwenv.Append(FBT_API_VERSION=LazySdkVersionLoader(fwenv.subst("$SDK_DEFINITION")))
|
||||
fwenv.PhonyTarget(
|
||||
"get_apiversion",
|
||||
"@echo $( ${FBT_API_VERSION} $)",
|
||||
)
|
||||
|
||||
# Add preprocessor definitions for current set of apps
|
||||
fwenv.Append(
|
||||
|
||||
Reference in New Issue
Block a user