Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pr] Support php 8.4. #197

Merged
merged 69 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
3c0a6a7
Update deprecated GH actions
joanhey Jan 30, 2024
6f44a0e
Add libkrb5-dev for PHP 8.3
joanhey Jan 30, 2024
c8d3caf
Testing fix for php8.3 jit
joanhey Jan 30, 2024
f044cee
Revert last commit
joanhey Jan 30, 2024
6957f01
Merge pull request #184 from joanhey/update-ghactions
rryqszq4 Feb 2, 2024
653dd83
Fix php 8 for lphp
joanhey Feb 17, 2024
9e7484a
Use cut for major version
joanhey Feb 17, 2024
92f3471
Add config file to run GH actions
joanhey Feb 17, 2024
3bf15e6
Fix opcache in php 8.3 using deb.sury.org
joanhey Feb 17, 2024
b5ce816
Try to fix opcache to run tests
joanhey Feb 17, 2024
4051f44
Fix opcache in dev.sury
joanhey Feb 17, 2024
c29538b
Fix opcache test
joanhey Feb 17, 2024
b52c736
Use last nginx v1.25.4 in tests
joanhey Feb 17, 2024
c3985c7
Find sort modules
joanhey Feb 18, 2024
ac9bd55
Clean PHP_MAJOR_VERSION
joanhey Feb 18, 2024
03d8a6e
Add config <compile
joanhey Feb 18, 2024
9c30521
Delete deprecated versions in Ubuntu 22.04 tests
joanhey Feb 18, 2024
d82f536
Add tests with Ubuntu 22.04
joanhey Feb 18, 2024
6e87c5f
Force nginx is closed
joanhey Feb 18, 2024
8e622c1
Merge pull request #185 from joanhey/fix-config-version8
rryqszq4 Feb 18, 2024
eef415b
Add Ubuntu 24.04 to tests
joanhey May 19, 2024
a1615ad
Fix argon-dev in 24.04
joanhey May 19, 2024
e0dbe6c
Clean names
joanhey May 19, 2024
9518648
Add PHP 8.4 to dev
joanhey May 19, 2024
75763dd
Fix dev workflow
joanhey May 19, 2024
f9542b9
Fix libargon2-dev in dev
joanhey May 19, 2024
c4fdcc8
Try again with 24.04
joanhey May 19, 2024
499397f
Fix dev workflow for Ubuntu 24.04
joanhey May 19, 2024
cc3c790
Run dev workflow PHP 8.4 each first of month
joanhey May 19, 2024
96c236f
Add nightly PHP build badge in Readme
joanhey May 19, 2024
e9b05ac
Add zend_fameless_function in php_ngx.c <22
joanhey May 19, 2024
3ba5cf3
Revert "Add zend_fameless_function in php_ngx.c <22"
joanhey May 19, 2024
f52f8cc
Fix JIT
joanhey May 19, 2024
01006a6
Fix permissions
joanhey May 19, 2024
9fb054f
Clean workflow names
joanhey May 19, 2024
c0b646d
Merge pull request #189 from joanhey/ubuntu-24.04
rryqszq4 Jun 13, 2024
ac49bbd
Unbuntu 20.04 disable tests for PHP 8.2 & 8.3
joanhey Jun 13, 2024
8488f47
Merge pull request #191 from joanhey/ubuntu-20.04
rryqszq4 Jun 14, 2024
baa3632
[src] Fix php error, last_error_message.
rryqszq4 Dec 26, 2024
7e71699
[src] Fix coredump when php error.
rryqszq4 Jan 4, 2025
e040a4e
[src] Fix
rryqszq4 Jan 5, 2025
f0152ff
[src] Fix
rryqszq4 Jan 5, 2025
19ce5e6
[src] Fix again
rryqszq4 Jan 5, 2025
482f8f5
[src] Fix again
rryqszq4 Jan 6, 2025
b65a169
[src] Fix check args type in function ngx_header_set.
rryqszq4 Jan 6, 2025
9832bde
[src] Fix core dump, move to fake zend_error_cb.
rryqszq4 Jan 10, 2025
609500b
[src] test php 8.4
rryqszq4 Jan 10, 2025
9113149
[src] change http status 500 to 200.
rryqszq4 Jan 10, 2025
24b0b9e
[src] fix
rryqszq4 Jan 12, 2025
d802ce2
[src] fix
rryqszq4 Jan 12, 2025
e383776
[src] fix
rryqszq4 Jan 12, 2025
a45001a
Update build_22.04_dynamic.yml
joanhey Jan 12, 2025
09432fe
Update build_24.04.yml
joanhey Jan 12, 2025
611872f
Update build_24.04_dynamic.yml
joanhey Jan 12, 2025
915b43e
Update build_24.04_dynamic.yml
joanhey Jan 12, 2025
8e29630
Update build_24.04.yml
joanhey Jan 12, 2025
101acb8
Update build_22.04_dynamic.yml
joanhey Jan 12, 2025
432e47b
Update build_22.04.yml
joanhey Jan 12, 2025
6cedfff
Disable JIT test for now
joanhey Jan 12, 2025
7072989
Delete JIT values test
joanhey Jan 12, 2025
7516d61
Remove JIT test
joanhey Jan 12, 2025
c5985f5
Merge pull request #195 from joanhey/development
rryqszq4 Jan 12, 2025
fc298bb
[src] git merge from development
rryqszq4 Jan 12, 2025
1c5308a
Merge pull request #196 from rryqszq4/fiber
rryqszq4 Jan 12, 2025
97f9617
Update build_24.04.yml add PHP8.4
joanhey Jan 12, 2025
47df07a
Update build_24.04_dynamic.yml add PHP8.4
joanhey Jan 12, 2025
f4e7b39
Merge pull request #198 from joanhey/patch-3
rryqszq4 Jan 13, 2025
e5e0c83
[src] bumped version to 0.0.30
rryqszq4 Jan 13, 2025
dbd21e2
[src] bumped version to 0.0.30
rryqszq4 Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/ngx-php/compile-ngx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
# mkdir php
# mkdir nginx

if [ ${PHP_SRC_VERSION:0:1} -ge "8" ]; then
PHP_MAJOR_VERSION=""
else
PHP_MAJOR_VERSION=${PHP_SRC_VERSION:0:1}
PHP_MAJOR_VERSION=${PHP_SRC_VERSION:0:1}
if [ $PHP_MAJOR_VERSION -ge "8" ]; then
PHP_MAJOR_VERSION=""
fi

# echo "nginx download ..."
Expand Down
8 changes: 4 additions & 4 deletions .github/ngx-php/compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ mkdir nginx

echo "php download ..."
wget http://php.net/distributions/php-${PHP_SRC_VERSION}.tar.gz
if [ ${PHP_SRC_VERSION:0:1} -ge "8" ]; then
PHP_MAJOR_VERSION=""
else
PHP_MAJOR_VERSION=${PHP_SRC_VERSION:0:1}

PHP_MAJOR_VERSION=${PHP_SRC_VERSION:0:1}
if [ $PHP_MAJOR_VERSION -ge "8" ]; then
PHP_MAJOR_VERSION=""
fi
echo "php download ... done"

Expand Down
2 changes: 2 additions & 0 deletions .github/ngx-php/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ fi
export TRAVIS_BUILD_DIR=`pwd`
echo $TRAVIS_BUILD_DIR

killall nginx

prove -r t
29 changes: 20 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,34 @@ env:
DB_PASSWORD: ngx_php

jobs:
build_php_22-04:
name: Compile PHP Ubuntu 22.04
if: ${{ contains(github.event.head_commit.message, '<compile') }}
build_24-04:
name: Ubuntu 24.04
if: ${{ !contains(github.event.head_commit.message, '<compile') }}
uses: ./.github/workflows/build_24.04.yml

build_22-04:
name: Ubuntu 22.04
if: ${{ !contains(github.event.head_commit.message, '<compile') }}
uses: ./.github/workflows/build_22.04.yml

build_20-04:
name: Ubuntu 20.04
if: ${{ !contains(github.event.head_commit.message, '<20') }}
uses: ./.github/workflows/build_20.04.yml

build_dynamic_20-04:
name: Ubuntu 20.04 dynamic
if: ${{ !contains(github.event.head_commit.message, '<20') }}
uses: ./.github/workflows/build_20.04_dynamic.yml

# Dinamyc build
build_dynamic_24-04:
name: Ubuntu 24.04 dynamic
if: ${{ !contains(github.event.head_commit.message, '<24') }}
uses: ./.github/workflows/build_24.04_dynamic.yml

build_dynamic_22-04:
name: Ubuntu 22.04 dynamic
if: ${{ contains(github.event.head_commit.message, '<22') }}
if: ${{ !contains(github.event.head_commit.message, '<22') }}
uses: ./.github/workflows/build_22.04_dynamic.yml

build_dynamic_20-04:
name: Ubuntu 20.04 dynamic
if: ${{ !contains(github.event.head_commit.message, '<20') }}
uses: ./.github/workflows/build_20.04_dynamic.yml

22 changes: 11 additions & 11 deletions .github/workflows/build_20.04.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build test 20.04
name: Build 20.04

on:
workflow_call:
Expand All @@ -14,18 +14,18 @@ jobs:

strategy:
matrix:
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
ngxinx_version: ["1.20.2", "1.22.1", "1.24.0"] # "1.12.2" fail to compile
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
nginx_version: ["1.20.2", "1.22.1", "1.24.0", "1.25.4"] # "1.12.2" fail to compile
# Disable fail-fast to allow all failing versions to fail in a
# single build, rather than stopping when the first one fails.
fail-fast: false

name: PHP-${{ matrix.php_version }} Nginx ${{ matrix.ngxinx_version }}
name: PHP-${{ matrix.php_version }} Nginx ${{ matrix.nginx_version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev libkrb5-dev

- name: Setup PHP-${{ matrix.php_version }}
uses: shivammathur/setup-php@v2
Expand All @@ -35,15 +35,15 @@ jobs:
ini-values: opcache.enable=1, opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=128M,error_reporting=E_ALL
coverage: none

- name: Download Nginx v${{ matrix.ngxinx_version }}
- name: Download Nginx v${{ matrix.nginx_version }}
run: |
wget http://nginx.org/download/nginx-${{ matrix.ngxinx_version }}.tar.gz
tar -zxf nginx-${{ matrix.ngxinx_version }}.tar.gz
wget http://nginx.org/download/nginx-${{ matrix.nginx_version }}.tar.gz
tar -zxf nginx-${{ matrix.nginx_version }}.tar.gz

- name: Compile Ngx-php
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
NGINX_SRC_VERSION: ${{ matrix.ngxinx_version }}
NGINX_SRC_VERSION: ${{ matrix.nginx_version }}
run: ./.github/ngx-php/compile-ngx.sh

- name: MySQL Start and create table
Expand All @@ -64,5 +64,5 @@ jobs:
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
run: |
sudo sed -i "s|opcache.jit=off|opcache.jit=tracing|g" /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
sudo bash -c "echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini"
./.github/ngx-php/test.sh
22 changes: 11 additions & 11 deletions .github/workflows/build_20.04_dynamic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build dynamic test 20.04
name: Build dynamic 20.04

on:
workflow_call:
Expand All @@ -14,18 +14,18 @@ jobs:

strategy:
matrix:
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
ngxinx_version: ["1.20.2", "1.22.1", "1.24.0"] # "1.12.2" fail to compile
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
nginx_version: ["1.20.2", "1.22.1", "1.24.0", "1.25.4"] # "1.12.2" fail to compile
# Disable fail-fast to allow all failing versions to fail in a
# single build, rather than stopping when the first one fails.
fail-fast: false

name: Dynamic PHP-${{ matrix.php_version }} Nginx ${{ matrix.ngxinx_version }}
name: Dynamic PHP-${{ matrix.php_version }} Nginx ${{ matrix.nginx_version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev libkrb5-dev

- name: Setup PHP-${{ matrix.php_version }}
uses: shivammathur/setup-php@v2
Expand All @@ -35,15 +35,15 @@ jobs:
ini-values: opcache.enable=1, opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=128M,error_reporting=E_ALL
coverage: none

- name: Download Nginx v${{ matrix.ngxinx_version }}
- name: Download Nginx v${{ matrix.nginx_version }}
run: |
wget http://nginx.org/download/nginx-${{ matrix.ngxinx_version }}.tar.gz
tar -zxf nginx-${{ matrix.ngxinx_version }}.tar.gz
wget http://nginx.org/download/nginx-${{ matrix.nginx_version }}.tar.gz
tar -zxf nginx-${{ matrix.nginx_version }}.tar.gz

- name: Compile Ngx-php
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
NGINX_SRC_VERSION: ${{ matrix.ngxinx_version }}
NGINX_SRC_VERSION: ${{ matrix.nginx_version }}
NGINX_MODULE: "DYNAMIC"
run: ./.github/ngx-php/compile-ngx.sh

Expand All @@ -65,5 +65,5 @@ jobs:
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
run: |
sudo sed -i "s|opcache.jit=off|opcache.jit=tracing|g" /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
sudo bash -c "echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini"
./.github/ngx-php/test.sh
23 changes: 12 additions & 11 deletions .github/workflows/build_22.04.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 22.04 Ngx-php & PHP build test
name: Build 22.04

on:
workflow_call:
Expand All @@ -14,18 +14,19 @@ jobs:

strategy:
matrix:
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
ngxinx_version: ["1.20.2", "1.22.1", "1.24.0"] # "1.12.2" fail to compile
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
# Only nginx stable and mainline versions for faster tests
nginx_version: [ "1.25.5", "1.26.0", "1.27.3" ]
# Disable fail-fast to allow all failing versions to fail in a
# single build, rather than stopping when the first one fails.
fail-fast: false

name: PHP-${{ matrix.php_version }} Nginx ${{ matrix.ngxinx_version }}
name: PHP-${{ matrix.php_version }} Nginx ${{ matrix.nginx_version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev libkrb5-dev

- name: Setup PHP-${{ matrix.php_version }}
uses: shivammathur/setup-php@v2
Expand All @@ -35,15 +36,15 @@ jobs:
ini-values: opcache.enable=1, opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=128M,error_reporting=E_ALL
coverage: none

- name: Download Nginx v${{ matrix.ngxinx_version }}
- name: Download Nginx v${{ matrix.nginx_version }}
run: |
wget http://nginx.org/download/nginx-${{ matrix.ngxinx_version }}.tar.gz
tar -zxf nginx-${{ matrix.ngxinx_version }}.tar.gz
wget http://nginx.org/download/nginx-${{ matrix.nginx_version }}.tar.gz
tar -zxf nginx-${{ matrix.nginx_version }}.tar.gz

- name: Compile Ngx-php
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
NGINX_SRC_VERSION: ${{ matrix.ngxinx_version }}
NGINX_SRC_VERSION: ${{ matrix.nginx_version }}
run: ./.github/ngx-php/compile-ngx.sh

- name: MySQL Start and create table
Expand All @@ -66,5 +67,5 @@ jobs:
run: |
sudo cp .github/ngx-php/php/99-xdebug.ini /etc/php/${PHP_SRC_VERSION}/embed/conf.d/
sudo cp .github/ngx-php/php/99-xdebug.ini /etc/php/${PHP_SRC_VERSION}/cli/conf.d/
sudo sed -i "s|opcache.jit=off|opcache.jit=tracing|g" /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
sudo bash -c "echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini"
./.github/ngx-php/test.sh
23 changes: 12 additions & 11 deletions .github/workflows/build_22.04_dynamic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build dynamic test Ubuntu 22.04
name: Build dynamic 22.04

on:
workflow_call:
Expand All @@ -14,18 +14,19 @@ jobs:

strategy:
matrix:
php_version: ["7.4", "8.0", "8.1", "8.2", "8.3"] # "7.0", "7.1", "7.2", "7.3",
ngxinx_version: ["1.20.2", "1.22.1", "1.24.0"] # "1.12.2" fail to compile
php_version: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"] # "7.0", "7.1", "7.2", "7.3",
# Only nginx stable and mainline versions for faster tests
nginx_version: [ "1.25.5", "1.26.0", "1.27.3" ]
# Disable fail-fast to allow all failing versions to fail in a
# single build, rather than stopping when the first one fails.
fail-fast: false

name: 22.04 Dynamic PHP-${{ matrix.php_version }} Nginx ${{ matrix.ngxinx_version }}
name: Dynamic PHP-${{ matrix.php_version }} Nginx ${{ matrix.nginx_version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev libkrb5-dev

- name: Setup PHP-${{ matrix.php_version }}
uses: shivammathur/setup-php@v2
Expand All @@ -35,15 +36,15 @@ jobs:
ini-values: opcache.enable=1, opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=128M,error_reporting=E_ALL
coverage: none

- name: Download Nginx v${{ matrix.ngxinx_version }}
- name: Download Nginx v${{ matrix.nginx_version }}
run: |
wget http://nginx.org/download/nginx-${{ matrix.ngxinx_version }}.tar.gz
tar -zxf nginx-${{ matrix.ngxinx_version }}.tar.gz
wget http://nginx.org/download/nginx-${{ matrix.nginx_version }}.tar.gz
tar -zxf nginx-${{ matrix.nginx_version }}.tar.gz

- name: Compile Ngx-php
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
NGINX_SRC_VERSION: ${{ matrix.ngxinx_version }}
NGINX_SRC_VERSION: ${{ matrix.nginx_version }}
NGINX_MODULE: "DYNAMIC"
run: ./.github/ngx-php/compile-ngx.sh

Expand All @@ -65,5 +66,5 @@ jobs:
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
run: |
sudo sed -i "s|opcache.jit=off|opcache.jit=tracing|g" /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
sudo bash -c "echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini"
./.github/ngx-php/test.sh
70 changes: 70 additions & 0 deletions .github/workflows/build_24.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build 24.04

on:
workflow_call:

env:
DB_DATABASE: ngx_php
DB_USER: ngx_php
DB_PASSWORD: ngx_php

jobs:
build:
runs-on: ubuntu-24.04

strategy:
matrix:
php_version: ["8.2", "8.3", "8.4"]
# Only nginx stable and mainline versions for faster tests
nginx_version: ["1.25.5", "1.26.0", "1.27.3"]
# Disable fail-fast to allow all failing versions to fail in a
# single build, rather than stopping when the first one fails.
fail-fast: false

name: PHP-${{ matrix.php_version }} Nginx ${{ matrix.nginx_version }}

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-dev libsodium-dev libkrb5-dev redis-server redis-tools memcached

- name: Setup PHP-${{ matrix.php_version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
extensions: dev, embed, opcache, mysql
ini-values: opcache.enable=1, opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=128M,error_reporting=E_ALL
coverage: none

- name: Download Nginx v${{ matrix.nginx_version }}
run: |
wget http://nginx.org/download/nginx-${{ matrix.nginx_version }}.tar.gz
tar -zxf nginx-${{ matrix.nginx_version }}.tar.gz

- name: Compile Ngx-php
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
NGINX_SRC_VERSION: ${{ matrix.nginx_version }}
run: ./.github/ngx-php/compile-ngx.sh

- name: MySQL Start and create table
run: |
sudo systemctl start mysql.service
mysql -uroot -proot -e 'CREATE DATABASE ${{ env.DB_DATABASE }};'
mysql -uroot -proot < .github/ngx-php/world.sql

- name: Install Redis & Memcached
run: |
sudo redis-server /etc/redis/redis.conf

- name: Perl packages
run: sudo cpanm -n Test::Nginx

- name: Test
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
run: |
sudo cp .github/ngx-php/php/99-xdebug.ini /etc/php/${PHP_SRC_VERSION}/embed/conf.d/
sudo cp .github/ngx-php/php/99-xdebug.ini /etc/php/${PHP_SRC_VERSION}/cli/conf.d/
sudo bash -c "echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini"
./.github/ngx-php/test.sh
Loading