Skip to content

Commit bdcd47d

Browse files
add ZTS asan tests
1 parent 34baa56 commit bdcd47d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/prof_asan.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
php-version: [8.3, 8.4]
12+
phpts: [nts, zts]
1213
container:
1314
image: datadog/dd-trace-ci:php-${{matrix.php-version}}_bookworm-5
1415
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
@@ -30,12 +31,12 @@ jobs:
3031
~/.cargo/registry/cache/
3132
~/.cargo/git/db/
3233
target/
33-
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}
34+
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.phpts }}
3435

3536
- name: Build and install profiler
3637
run: |
3738
set -eux
38-
switch-php nts-asan
39+
switch-php ${{ matrix.phpts }}-asan
3940
rm $(php-config --ini-dir)/sqlsrv.ini #sqlsrv leaks memory and triggers asan
4041
cd profiling
4142
export CARGO_TARGET_DIR=/tmp/build-cargo
@@ -57,12 +58,12 @@ jobs:
5758
~/.cargo/registry/cache/
5859
~/.cargo/git/db/
5960
/tmp/build-cargo/
60-
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}
61+
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.phpts }}
6162

6263
- name: Run phpt tests
6364
run: |
6465
set -eux
65-
switch-php nts-asan
66+
switch-php ${{ matrix.phpts }}-asan
6667
cd profiling/tests
6768
cp -v $(php-config --prefix)/lib/php/build/run-tests.php .
6869
export DD_PROFILING_OUTPUT_PPROF=/tmp/pprof

0 commit comments

Comments
 (0)