Skip to content

Commit 58f8210

Browse files
committed
update build
1 parent f0c59a4 commit 58f8210

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,15 @@ jobs:
4747
run: brew install zip unzip p7zip
4848

4949
-
50-
name: Disable JIT for PHP 8
51-
if: matrix.php != '7.4'
50+
name: Disable JIT for PHP 8 on Linux and Mac
51+
if: (matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest') && matrix.php != '7.4'
5252
run: echo "PHP_INI=\"${PHP_INI}, opcache.jit=0, opcache.jit_buffer_size=0\"" >> $GITHUB_ENV
5353

54+
-
55+
name: Disable JIT for PHP 8 on Windows
56+
if: matrix.os == 'windows-latest' && matrix.php != '7.4'
57+
run: echo "PHP_INI=\"$PHP_INI, opcache.jit=0, opcache.jit_buffer_size=0\"" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
58+
5459
-
5560
name: Install PHP with extensions
5661
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)