Skip to content

Commit 744b9ee

Browse files
committed
Fix disabling JIT on different PHP versions
1 parent 35574fd commit 744b9ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
test:
13-
name: PHP ${{ matrix.php }} ${{ matrix.php-jit == 1255 && 'with' || 'without' }} JIT on ${{ matrix.os }} ${{ matrix.arch }}
13+
name: PHP ${{ matrix.php }} ${{ matrix.php-jit == 'on' && 'with' || 'without' }} JIT on ${{ matrix.os }} ${{ matrix.arch }}
1414
runs-on: ${{ matrix.os }}
1515
container: shivammathur/node:latest-${{ matrix.arch }}
1616
continue-on-error: ${{ matrix.php == 'nightly' }}
@@ -30,13 +30,13 @@ jobs:
3030
- 8.2
3131
- 8.3
3232
php-jit:
33-
- disable
34-
- 1255
33+
- on
34+
- off
3535
include:
3636
- php: nightly
3737
os: ubuntu-latest
3838
arch: amd64
39-
php-jit: disable
39+
php-jit: on
4040

4141
steps:
4242
- name: Checkout
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
php-version: ${{ matrix.php }}
4949
extensions: mbstring, opcache, pcre, gmp
50-
ini-values: zend.assertions=1, opcache.enable_cli=1, opcache.memory_consumption=256, opcache.jit=${{ matrix.php-jit }}, opcache.jit_buffer_size=256M
50+
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' }}
5151
coverage: none
5252
env:
5353
fail-fast: true

0 commit comments

Comments
 (0)