ci: add optimized release PHP variant with debug symbols#3657
ci: add optimized release PHP variant with debug symbols#3657
Conversation
|
✨ Fix all issues with BitsAI or with Cursor
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3657 +/- ##
=======================================
Coverage 62.21% 62.21%
=======================================
Files 141 141
Lines 13387 13387
Branches 1753 1753
=======================================
Hits 8329 8329
Misses 4260 4260
Partials 798 798 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Add two new PHP variants to all bookworm CI images: - 'release-nts': Optimized non-thread-safe with debug symbols - 'release-zts': Optimized Zend thread-safe with debug symbols Both variants provide: - Full -O2 optimization for production performance - Debug symbols (-g flag) for profiling and debugging - No --enable-debug flag (avoids debug build overhead) These variants are optimized for benchmarking and profiling scenarios where both performance and symbol availability are required. Changes: - Modified build-php.sh to set CFLAGS="-O2 -g" for release-* variants - Added php-release-nts and php-release-zts build stages to all PHP version Dockerfiles (7.0-8.5) - Added both variants to final image in /opt/php/release-nts and /opt/php/release-zts Usage: switch-php release-nts # For non-thread-safe builds switch-php release-zts # For thread-safe builds
d5f2090 to
015808a
Compare
Description
Add two new PHP variants to all bookworm CI images:
Both variants provide:
These variants are optimized for benchmarking and profiling scenarios where
both performance and symbol availability are required.
Changes:
Dockerfiles (7.0-8.5)
/opt/php/release-zts
Usage:
switch-php release-nts # For non-thread-safe builds
switch-php release-zts # For thread-safe builds