chore: Clean up Conan variables in CI (#5903)

This change sanitizes inputs by setting them as environment variables, and adjusts the number of CPUs used for building. Namely, GitHub inputs should be sanitized, per recommendation by Semgrep, as using them directly poses a security risk. A recent change further overrode the global configuration by having builds use all cores, but as we have noticed an increased number of job cancelation this change updates it to use all cores less one.

Co-authored-by: Bart Thomee <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
Bart
2025-10-17 12:04:58 -04:00
committed by GitHub
parent b64707f53b
commit 5523557226
3 changed files with 7 additions and 5 deletions

View File

@@ -3,4 +3,4 @@
core:non_interactive=True
core.download:parallel={{ os.cpu_count() }}
core.upload:parallel={{ os.cpu_count() }}
tools.build:jobs={{ (os.cpu_count() * 4/5) | int }}
tools.build:jobs={{ os.cpu_count() - 1 }}