Skip to content

Commit

Permalink
Add opcache.jit_buffer_size path for master test
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Nov 26, 2024
1 parent 383e30f commit e5da435
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/master-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,19 @@ jobs:
extensions: curl,openssl,sockets,ffi,pdo,pdo_pgsql

- name: Setup composer dependencies
run: composer update -o --ignore-platform-reqs
run: |
composer update -o --ignore-platform-reqs
# for arm64 machines:
# Warning: JIT on AArch64 doesn't support opcache.jit_buffer_size above 128M. in Unknown on line 0
if uname -m | grep -q -e arm64 -e aarch64; then
# for shivammathur/setup-php@v2 at macos
for f in \
/opt/homebrew/etc/php/${{ matrix.php-version }}/php.ini \
$(find /opt/homebrew/etc/php/${{ matrix.php-version }}/conf.d -name '*.ini' -type f)
do
sed -i -E 's/opcache.jit_buffer_size=.+/opcache.jit_buffer_size=128M/g' "$f"
done
fi
- name: Detect dependencies path from php-config
run: |
Expand Down

0 comments on commit e5da435

Please sign in to comment.