summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-12-05 18:01:16 +0700
committerGitHub <[email protected]>2024-12-05 18:01:16 +0700
commit310b8657f06570362740c4dda89705f694c81538 (patch)
tree9b36abf565b5cd0f8ddfcb3f4532929ec16d74b2 /tools
parenteabf68bd9154672821531c9139118a63076b9e9d (diff)
try to run arm-iar with circleci with new token (#2890)
* try to run arm-iar with circleci with new token * limit iar ci parallel build to 4 for medium+ and 6 for large * add hil-hfp to compile and test with IAR
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/build.py b/tools/build.py
index 3a9239bc2..bbc98e9c4 100755
--- a/tools/build.py
+++ b/tools/build.py
@@ -109,7 +109,14 @@ def cmake_board(board, toolchain, build_flags_on):
rcmd = run_cmd(f'cmake examples -B {build_dir} -G "Ninja" -DBOARD={board} -DCMAKE_BUILD_TYPE=MinSizeRel '
f'-DTOOLCHAIN={toolchain} {build_flags}')
if rcmd.returncode == 0:
- rcmd = run_cmd(f"cmake --build {build_dir}")
+ cmd = f"cmake --build {build_dir}"
+ # Due to IAR capability, limit parallel build to 4 (medium+) or 6 (large) docker
+ if toolchain == 'iar' and os.getenv('CIRCLECI'):
+ if 'large' in os.getenv('CIRCLE_JOB'):
+ cmd += ' --parallel 6'
+ else:
+ cmd += ' --parallel 4'
+ rcmd = run_cmd(cmd)
ret[0 if rcmd.returncode == 0 else 1] += 1
example = 'all'