@@ -82,6 +82,10 @@ Build.BuildContext.execute = ardupilotwaf.ap_autoconfigure(Build.BuildContext.ex
82
82
Configure .ConfigurationContext .post_recurse = ardupilotwaf .ap_configure_post_recurse ()
83
83
84
84
85
+ # Get the GitHub Actions summary file path
86
+ is_ci = os .getenv ('CI' )
87
+
88
+
85
89
def _set_build_context_variant (board ):
86
90
for c in Context .classes :
87
91
if not issubclass (c , Build .BuildContext ):
@@ -476,6 +480,8 @@ def _collect_autoconfig_files(cfg):
476
480
cfg .files .append (p )
477
481
478
482
def configure (cfg ):
483
+ if is_ci :
484
+ print (f"::group::Waf Configure" )
479
485
# we need to enable debug mode when building for gconv, and force it to sitl
480
486
if cfg .options .board is None :
481
487
cfg .options .board = 'sitl'
@@ -651,6 +657,8 @@ def configure(cfg):
651
657
652
658
cfg .remove_target_list ()
653
659
_collect_autoconfig_files (cfg )
660
+ if is_ci :
661
+ print ("::endgroup::" )
654
662
655
663
def collect_dirs_to_recurse (bld , globs , ** kw ):
656
664
dirs = []
@@ -876,6 +884,8 @@ def _load_pre_build(bld):
876
884
brd .pre_build (bld )
877
885
878
886
def build (bld ):
887
+ if is_ci :
888
+ print (f"::group::Waf Build" )
879
889
config_hash = Utils .h_file (bld .bldnode .make_node ('ap_config.h' ).abspath ())
880
890
bld .env .CCDEPS = config_hash
881
891
bld .env .CXXDEPS = config_hash
@@ -911,6 +921,11 @@ def build(bld):
911
921
_build_recursion (bld )
912
922
913
923
_build_post_funs (bld )
924
+ if is_ci :
925
+ def print_ci_endgroup (bld ):
926
+ print (f"::endgroup::" )
927
+ bld .add_post_fun (print_ci_endgroup )
928
+
914
929
915
930
ardupilotwaf .build_command ('check' ,
916
931
program_group_list = 'all' ,
0 commit comments