浏览代码

update build

Ne-Lexa 5 年之前
父节点
当前提交
58f821040f
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      .github/workflows/build.yml

+ 7 - 2
.github/workflows/build.yml

@@ -47,10 +47,15 @@ jobs:
                 run:  brew install zip unzip p7zip
 
             -
-                name: Disable JIT for PHP 8
-                if:   matrix.php != '7.4'
+                name: Disable JIT for PHP 8 on Linux and Mac
+                if:   (matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest') && matrix.php != '7.4'
                 run:  echo "PHP_INI=\"${PHP_INI}, opcache.jit=0, opcache.jit_buffer_size=0\"" >> $GITHUB_ENV
 
+            -
+                name: Disable JIT for PHP 8 on Windows
+                if:   matrix.os == 'windows-latest' && matrix.php != '7.4'
+                run:  echo "PHP_INI=\"$PHP_INI, opcache.jit=0, opcache.jit_buffer_size=0\"" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
+
             -
                 name: Install PHP with extensions
                 uses: shivammathur/setup-php@v2