Skip to content

Commit

Permalink
Merge branch 'master' into florian/use-github-actions-for-profiling-t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
realFlowControl committed Oct 22, 2024
2 parents 36ad349 + b7a0f6f commit b238222
Show file tree
Hide file tree
Showing 43 changed files with 567 additions and 475 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/prof_asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1
submodules: true

- name: Restore build cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -45,7 +45,7 @@ jobs:
cp -v "$CARGO_TARGET_DIR/$triplet/release/libdatadog_php_profiling.so" "$(php-config --extension-dir)/datadog-profiling.so"
- name: Cache build dependencies
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -69,4 +69,3 @@ jobs:
cd profiling/tests
cp -v $(php-config --prefix)/lib/php/build/run-tests.php .
php run-tests.php --show-diff --asan -d extension=datadog-profiling.so phpt
12 changes: 6 additions & 6 deletions .github/workflows/prof_correctness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1
submodules: true

- name: Setup PHP
Expand All @@ -32,15 +32,15 @@ jobs:
phpts: ${{ matrix.phpts }}

- name: Restore build cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.php-versions }}-${{ matrix.phpts }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.php-version }}-${{ matrix.phpts }}

- name: Build profiler
run: |
Expand All @@ -57,15 +57,15 @@ jobs:
cargo rustc --features="trigger_time_sample" --release --crate-type=cdylib
- name: Cache build dependencies
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.php-versions }}-${{ matrix.phpts }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.php-version }}-${{ matrix.phpts }}

- name: Run no profile test
run: |
Expand Down
Loading

0 comments on commit b238222

Please sign in to comment.