3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-08-02 20:23:27 +00:00

clang-tidy-warning-report: parallelize build using all available cores (#10351)

The clang-tidy warning report workflow was building Z3 single-threaded,
making the job unnecessarily slow on multi-core runners.

## Change

- Added `--parallel $(nproc)` to the `cmake --build` invocation,
consistent with how `ci.yml` parallelizes builds (e.g. `make
-j$(nproc)`).

```yaml
cmake --build build --target shell test-z3 --parallel $(nproc) -- -k 0
```

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot 2026-08-01 13:09:04 -07:00 committed by GitHub
parent 373dbb2633
commit 7b0a54c849
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ jobs:
2>&1 | tee /tmp/clang-tidy-warning-report/configure.log || configure_status=$?
if [ "$configure_status" -eq 0 ]; then
cmake --build build --target shell test-z3 -- -k 0 \
cmake --build build --target shell test-z3 --parallel $(nproc) -- -k 0 \
2>&1 | tee /tmp/clang-tidy-warning-report/build.log || build_status=$?
else
printf 'configure failed; build skipped\n' | tee /tmp/clang-tidy-warning-report/build.log