mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add PHP 8.4 to test matrix, and reorganize github CI configuration
This commit is contained in:
parent
ab242e9ebf
commit
6184797b22
3 changed files with 56 additions and 12 deletions
37
.github/workflows/setup-php.sh
vendored
Normal file
37
.github/workflows/setup-php.sh
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Based on https://github.com/nanasess/setup-php
|
||||
sudo add-apt-repository -y ppa:ondrej/php
|
||||
|
||||
# Install all required packages
|
||||
sudo apt -y install \
|
||||
php$1-apcu \
|
||||
php$1-bcmath \
|
||||
php$1-cli \
|
||||
php$1-common \
|
||||
php$1-curl \
|
||||
php$1-gd \
|
||||
php$1-intl \
|
||||
php$1-mbstring \
|
||||
php$1-mysql \
|
||||
php$1-opcache \
|
||||
php$1-readline \
|
||||
php$1-sqlite3 \
|
||||
php$1-xml \
|
||||
php$1-zip
|
||||
|
||||
# Enable and tune opcache
|
||||
sudo bash -c 'echo "opcache.enable = 1" >> /etc/php/$1/cli/conf.d/10-opcache.ini'
|
||||
sudo bash -c 'echo "opcache.enable_cli = 1" >> /etc/php/$1/cli/conf.d/10-opcache.ini'
|
||||
sudo bash -c 'echo "opcache.jit = tracing" >> /etc/php/$1/cli/conf.d/10-opcache.ini'
|
||||
sudo bash -c 'echo "opcache.jit_buffer_size = 128M" >> /etc/php/$1/cli/conf.d/10-opcache.ini'
|
||||
|
||||
# Enable APCu
|
||||
sudo bash -c 'echo "apc.enable_cli = 1" >> /etc/php/$1/cli/conf.d/20-apcu.ini'
|
||||
|
||||
# Disable xdebug
|
||||
sudo phpdismod -v ALL -s ALL xdebug
|
||||
|
||||
# Set and check default PHP version
|
||||
sudo update-alternatives --set php /usr/bin/php$1
|
||||
php -v
|
||||
Loading…
Add table
Add a link
Reference in a new issue