Skip to content

Commit

Permalink
Fix disabling JIT on different PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TRowbotham committed Jun 13, 2024
1 parent 35574fd commit 744b9ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
name: PHP ${{ matrix.php }} ${{ matrix.php-jit == 1255 && 'with' || 'without' }} JIT on ${{ matrix.os }} ${{ matrix.arch }}
name: PHP ${{ matrix.php }} ${{ matrix.php-jit == 'on' && 'with' || 'without' }} JIT on ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
container: shivammathur/node:latest-${{ matrix.arch }}
continue-on-error: ${{ matrix.php == 'nightly' }}
Expand All @@ -30,13 +30,13 @@ jobs:
- 8.2
- 8.3
php-jit:
- disable
- 1255
- on
- off
include:
- php: nightly
os: ubuntu-latest
arch: amd64
php-jit: disable
php-jit: on

steps:
- name: Checkout
Expand All @@ -47,7 +47,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: mbstring, opcache, pcre, gmp
ini-values: zend.assertions=1, opcache.enable_cli=1, opcache.memory_consumption=256, opcache.jit=${{ matrix.php-jit }}, opcache.jit_buffer_size=256M
ini-values: zend.assertions=1, opcache.enable_cli=1, opcache.memory_consumption=256, opcache.jit=${{ matrix.php-jit == 'on' && 1255 || 'disable' }}, opcache.jit_buffer_size=${{ matrix.php-jit == 'on' && '256M' || '0' }}
coverage: none
env:
fail-fast: true
Expand Down

0 comments on commit 744b9ee

Please sign in to comment.