@@ -40,9 +40,6 @@ permissions:
40
40
concurrency :
41
41
group : ${{ github.workflow }}-${{ github.event.pull_request.url || github.run_id }}
42
42
cancel-in-progress : true
43
- env :
44
- CC : ccache gcc
45
- CXX : ccache g++
46
43
jobs :
47
44
LINUX_X64 :
48
45
services :
@@ -206,6 +203,52 @@ jobs:
206
203
run : .github/scripts/windows/build.bat
207
204
- name : Test
208
205
run : .github/scripts/windows/test.bat
206
+ COVERAGE_DEBUG_NTS :
207
+ services :
208
+ postgres :
209
+ image : postgres
210
+ env :
211
+ POSTGRES_USER : postgres
212
+ POSTGRES_PASSWORD : postgres
213
+ POSTGRES_DB : test
214
+ runs-on : ubuntu-22.04
215
+ steps :
216
+ - name : git checkout
217
+ uses : actions/checkout@v4
218
+ with :
219
+ fetch-depth : 0
220
+ - name : Create MSSQL container
221
+ uses : ./.github/actions/setup-mssql
222
+ - name : apt
223
+ uses : ./.github/actions/apt-x64
224
+ - name : ccache
225
+ uses :
hendrikmuhs/[email protected]
226
+ with :
227
+ key : " ${{github.job}}-cov-${{hashFiles('main/php_version.h')}}"
228
+ append-timestamp : false
229
+ - name : Install gcovr
230
+ run : sudo -H pip install gcovr
231
+ - name : ./configure
232
+ uses : ./.github/actions/configure-x64
233
+ with :
234
+ configurationParameters : --enable-debug --disable-zts --enable-gcov
235
+ - name : make
236
+ run : make -j$(/usr/bin/nproc) >/dev/null
237
+ - name : make install
238
+ uses : ./.github/actions/install-linux
239
+ - name : Setup
240
+ uses : ./.github/actions/setup-x64
241
+ # We only test with OpCache, the difference in coverage is negligible
242
+ - name : Test OpCache
243
+ uses : ./.github/actions/test-linux
244
+ with :
245
+ jitType : tracing
246
+ runTestsParameters : >-
247
+ -d zend_extension=opcache.so
248
+ -d opcache.enable_cli=1
249
+ - name : Upload Test Coverage to Codecov.io
250
+ if : always()
251
+ run : bash <(curl -s https://codecov.io/bash)
209
252
BENCHMARKING :
210
253
name : BENCHMARKING
211
254
if : github.repository_owner == 'php' || github.event_name == 'pull_request'
0 commit comments