Skip to content

Commit a46472a

Browse files
committed
chore(ci): update skip pattern
to ignore files added due to submodule usage for HAL drivers and CMSIS device headers. Signed-off-by: Frederic Pillon <[email protected]>
1 parent b7c9e55 commit a46472a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

CI/update/stm32cube.py

+20-2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@
5656
md_CMSIS_path = "STM32YYxx_CMSIS_version.md"
5757
md_HAL_path = "STM32YYxx_HAL_Driver_version.md"
5858

59+
# Pattern list of files to skip
60+
hal_skip_pattern = {"*.chm"}
61+
cmsis_skip_pattern = {"iar", "arm"}
62+
common_skip_pattern = {
63+
".github",
64+
"CODE_OF_CONDUCT.md",
65+
"CONTRIBUTING.md",
66+
"SECURITY.md",
67+
}
68+
5969
# stm32 def file to update
6070
stm32_def = "stm32_def.h"
6171

@@ -845,7 +855,11 @@ def updateCore():
845855
HAL_serie_cube_path = (
846856
cube_path / hal_src_path / f"STM32{serie}xx_HAL_Driver"
847857
)
848-
copyFolder(HAL_serie_cube_path, HAL_serie_core_path, {"*.chm"})
858+
copyFolder(
859+
HAL_serie_cube_path,
860+
HAL_serie_core_path,
861+
hal_skip_pattern.union(common_skip_pattern),
862+
)
849863
# Update MD file
850864
updateMDFile(md_HAL_path, serie, cube_HAL_ver)
851865
# Commit all HAL files
@@ -863,7 +877,11 @@ def updateCore():
863877
deleteFolder(CMSIS_serie_dest_path)
864878
# Copy new one
865879
CMSIS_serie_cube_path = cube_path / cmsis_src_path / f"STM32{serie}xx"
866-
copyFolder(CMSIS_serie_cube_path, CMSIS_serie_dest_path, {"iar", "arm"})
880+
copyFolder(
881+
CMSIS_serie_cube_path,
882+
CMSIS_serie_dest_path,
883+
cmsis_skip_pattern.union(common_skip_pattern),
884+
)
867885
# Update MD file
868886
updateMDFile(md_CMSIS_path, serie, cube_CMSIS_ver)
869887
# Commit all CMSIS files

0 commit comments

Comments
 (0)