CI: Speed up 'min-btc-support' by compiling clang with -O3.
What changed, and why it matters
This commit changes a GitHub Actions CI workflow so that one of the automated test jobs compiles the project with a higher compiler optimization level (-O3) to make the build finish faster and avoid hitting a 2-hour timeout. It does not change any production code, user-facing behavior, or security-sensitive logic.
No security action needed. This is a benign CI performance tuning change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds COPTFLAGS_VAR: COPTFLAGS=”-O3” to the compile-clang matrix entry in .github/workflows/ci.yaml. This passes -O3 as the C optimization flag for that CI job only, reducing the ‘min-btc-support’ job runtime from roughly 2 hours to 53 minutes. It is a CI configuration change with no modifications to Core Lightning source code, build defaults, or runtime behavior outside this specific CI matrix entry.
Changed components
.github/workflows/ci.yamlInspect captured patch +1 / −0
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 72a9fdee..6f9d3297 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -132,6 +132,7 @@ jobs:
- CFG: compile-clang
VALGRIND: 1
COMPILER: clang
+ COPTFLAGS_VAR: COPTFLAGS="-O3"
DEBUG_BUILD: --enable-debugbuild
- CFG: compile-clang-sanitizers
COMPILER: clang
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.