Skip to content

Commit

Permalink
Change jit_buffer_size ini setting on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Nov 26, 2024
1 parent 0d8bac3 commit 1f560b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,17 @@ jobs:
run: |
php ./.github/workflows/phpunit-adapter.php ${{ matrix.php-version }}
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 1f560b2

Please sign in to comment.