summaryrefslogtreecommitdiff
path: root/tools/ci
diff options
context:
space:
mode:
authorCYFS <[email protected]>2026-06-22 10:16:28 +0800
committerRbb666 <[email protected]>2026-06-22 18:58:30 +0800
commitc3c1672263ee43da91ce6004c12bee58acca657a (patch)
treefbb5b4e582dbc402a32cde115a40f715ad7c163f /tools/ci
parenta828a3116dfedb35af043ef4ed66338ace900194 (diff)
[feat][ci]: reduce duplicate HC32 attachconfig builds
Diffstat (limited to 'tools/ci')
-rw-r--r--tools/ci/bsp_buildings.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/ci/bsp_buildings.py b/tools/ci/bsp_buildings.py
index 7a4c8fc476..a07340d439 100644
--- a/tools/ci/bsp_buildings.py
+++ b/tools/ci/bsp_buildings.py
@@ -382,6 +382,14 @@ if __name__ == "__main__":
rtt_root = os.getcwd()
srtt_bsp = os.getenv('SRTT_BSP').split(',')
+ attachconfig_rtt_bsp_env = os.getenv('ATTACHCONFIG_RTT_BSP')
+ attachconfig_rtt_bsp = None
+ if attachconfig_rtt_bsp_env:
+ attachconfig_rtt_bsp = {
+ bsp.strip()
+ for bsp in attachconfig_rtt_bsp_env.split(',')
+ if bsp.strip()
+ }
print(srtt_bsp)
for bsp in srtt_bsp:
count += 1
@@ -395,6 +403,11 @@ if __name__ == "__main__":
add_summary(f'- ✅ build {bsp} success.')
print("::endgroup::")
+ if attachconfig_rtt_bsp is not None and bsp not in attachconfig_rtt_bsp:
+ print(f"Skip attachconfig build for {bsp}")
+ add_summary(f'\t- ⏭️ skip attachconfig build {bsp}.')
+ continue
+
yml_files_content = []
directory = os.path.join(rtt_root, 'bsp', bsp, '.ci/attachconfig')
if os.path.exists(directory):