From 441b44af27572aaf570a4603c08209a7832d2b1b Mon Sep 17 00:00:00 2001 From: Jake Carter Date: Mon, 13 May 2024 14:58:22 -0600 Subject: [PATCH 1/2] Clean cordio libs in build test workflow --- .github/workflows/scripts/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scripts/build.py b/.github/workflows/scripts/build.py index 2c962760220..1fe1e4c1ac5 100644 --- a/.github/workflows/scripts/build.py +++ b/.github/workflows/scripts/build.py @@ -44,6 +44,7 @@ def build_project(project:Path, target, board, maxim_path:Path, distclean=False, extra_args=None) -> Tuple[int, tuple]: clean_cmd = "make clean" if not distclean else "make distclean" + if target in ["MAX32655", "MAX32665", "MAX32690"]: clean_cmd += "&& make clean.cordio" res = run(clean_cmd, cwd=project, shell=True, capture_output=True, encoding="utf-8") # Test build From 0a9b436fdfd294f5dc50e01840b54da225b8bcc7 Mon Sep 17 00:00:00 2001 From: Jake Carter Date: Mon, 13 May 2024 15:08:34 -0600 Subject: [PATCH 2/2] Run clean.cordio based on project name/path instead of target value --- .github/workflows/scripts/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/build.py b/.github/workflows/scripts/build.py index 1fe1e4c1ac5..00d83d87b19 100644 --- a/.github/workflows/scripts/build.py +++ b/.github/workflows/scripts/build.py @@ -44,7 +44,9 @@ def build_project(project:Path, target, board, maxim_path:Path, distclean=False, extra_args=None) -> Tuple[int, tuple]: clean_cmd = "make clean" if not distclean else "make distclean" - if target in ["MAX32655", "MAX32665", "MAX32690"]: clean_cmd += "&& make clean.cordio" + if "Bluetooth" in project.as_posix() or "BLE" in project.as_posix(): + # Clean cordio lib for BLE projects + clean_cmd += "&& make clean.cordio" res = run(clean_cmd, cwd=project, shell=True, capture_output=True, encoding="utf-8") # Test build