feat(build): support env var IDF_PY_BUILD_JOBS for ninja jobs

This commit is contained in:
Fu Hanxi
2026-04-15 13:24:16 +02:00
parent f15406fe33
commit 2aee18d827
4 changed files with 34 additions and 1 deletions
+4
View File
@@ -19,6 +19,10 @@ variables:
# Common parameters for the 'make' during CI tests
MAKEFLAGS: "-j5 --no-keep-going"
# By default, CI build jobs request and limit 4 CPU cores and 4 GB of memory
# https://github.com/ninja-build/ninja/blob/def9560a0b6d755936e615ce443a0aec45c39bdb/src/ninja.cc#L262
# cpu_cores + 2
IDF_PY_BUILD_JOBS: "6"
# GitLab-CI environment
# Thanks to pack-objects cache, clone strategy should behave faster than fetch