File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
matrix :
11
11
php-version : [8.3, 8.4]
12
+ phpts : [nts, zts]
12
13
container :
13
14
image : datadog/dd-trace-ci:php-${{matrix.php-version}}_bookworm-5
14
15
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
@@ -30,12 +31,12 @@ jobs:
30
31
~/.cargo/registry/cache/
31
32
~/.cargo/git/db/
32
33
target/
33
- key : ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}
34
+ key : ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.phpts }}
34
35
35
36
- name : Build and install profiler
36
37
run : |
37
38
set -eux
38
- switch-php nts -asan
39
+ switch-php ${{ matrix.phpts }} -asan
39
40
rm $(php-config --ini-dir)/sqlsrv.ini #sqlsrv leaks memory and triggers asan
40
41
cd profiling
41
42
export CARGO_TARGET_DIR=/tmp/build-cargo
@@ -57,12 +58,12 @@ jobs:
57
58
~/.cargo/registry/cache/
58
59
~/.cargo/git/db/
59
60
/tmp/build-cargo/
60
- key : ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}
61
+ key : ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.phpts }}
61
62
62
63
- name : Run phpt tests
63
64
run : |
64
65
set -eux
65
- switch-php nts -asan
66
+ switch-php ${{ matrix.phpts }} -asan
66
67
cd profiling/tests
67
68
cp -v $(php-config --prefix)/lib/php/build/run-tests.php .
68
69
export DD_PROFILING_OUTPUT_PPROF=/tmp/pprof
You can’t perform that action at this time.
0 commit comments