Skip to content

Commit

Permalink
:(
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Nov 19, 2024
1 parent 76d4303 commit 0709c71
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/main-php-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,22 @@ jobs:

runs-on: ${{ inputs.runs-on }}

outputs:
skip-jit-tracing: ${{ steps.jit-tracing.outputs.result }}

steps:
- name: Decide whether to skip jit-tracing tests
#jit-tracing is borked on linux until 8.3 due to https://github.com/php/php-src/issues/10473
id: jit-tracing
run:
major="$(echo ${{ inputs.php }} | cut -d. -f1)"
minor="$(echo ${{ inputs.php }} | cut -d. -f2)"
skip="skip-"
if [[ "$major" -gt 8 ]] || [[ "$major" -eq 8 && "$minor" -ge 3 ]]; then
skip=""
fi
echo "result=$skip" >> $GITHUB_OUTPUT

- name: Set PHP build cache key
id: cache-key
run: |
Expand Down Expand Up @@ -80,8 +95,6 @@ jobs:
name: Test (OPcache ${{ matrix.opcache }}, Valgrind tool ${{ matrix.valgrind-tool }})
runs-on: ${{ inputs.runs-on }}
needs: build-php
#jit-tracing is borked on linux until 8.3 due to https://github.com/php/php-src/issues/10473
if: "matrix.opcache != 'jit-tracing' || (!startsWith(inputs.php, '8.1') && !startsWith(inputs.php, '8.2'))"

strategy:
fail-fast: false
Expand All @@ -90,11 +103,13 @@ jobs:
- "off"
- "on"
- "jit"
- "jit-tracing"
- "${{ needs.build-php.outputs.skip-jit-tracing }}jit-tracing"
valgrind-tool:
- none
- memcheck
- drd
exclude:
- opcache: skip-jit-tracing

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down

0 comments on commit 0709c71

Please sign in to comment.