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] release version to 0.0.28 #182

Merged
merged 103 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
bb8c63a
[src] Test
Apr 11, 2023
eeed400
Merge branch 'master' of https://github.com/rryqszq4/ngx-php into ubu…
joanhey Apr 12, 2023
dbdf894
Add tests with Ubuntu 22.04
joanhey Apr 12, 2023
62f7a40
Change #ifdef for #if HAVE_DTRACE
joanhey Apr 12, 2023
b0ed667
Revert "Change #ifdef for #if HAVE_DTRACE"
joanhey Apr 12, 2023
72e1d60
Add PHP7.3 to test
joanhey Apr 13, 2023
c1c3e73
Revert "Add PHP7.3 to test"
joanhey Apr 13, 2023
725f948
22.04 compile php
joanhey Apr 13, 2023
3083cd3
Use ubuntu 22.04 in workflow
joanhey Apr 13, 2023
dd3f62d
Fix typo in path
joanhey Apr 13, 2023
e49f27d
Delete libenchand-dev from deps
joanhey Apr 13, 2023
ca5521a
Fix compiler paths and add conditionals to run
joanhey Apr 13, 2023
fdfe258
[ci only 22] Test the conditional
joanhey Apr 13, 2023
33056ff
Fix paths [ci only 22]
joanhey Apr 13, 2023
b37792a
Merge pull request #165 from joanhey/ubuntu-22.04
rryqszq4 Apr 13, 2023
2bb5d14
Show dir [ci only 22]
joanhey Apr 13, 2023
9ec9221
Change paths and add setup job
joanhey Apr 13, 2023
2362419
Add setup in all workflows
joanhey Apr 13, 2023
5a8a8ae
Add steps to Setup
joanhey Apr 13, 2023
80a1940
Show php-config in compile PHP [ci only 22]
joanhey Apr 13, 2023
05d6f3a
Use composite workflows [ci only 22]
joanhey Apr 13, 2023
cffa675
Add composite workflow with 22.04 [ci only 22]
joanhey Apr 13, 2023
2724b69
Compile PHP only with[ci only 22] or [compile-php]
joanhey Apr 13, 2023
412451a
Only compile php with [compile-php]
joanhey Apr 13, 2023
bf60bd1
Normal commit
joanhey Apr 13, 2023
91ffb7d
Rename workflow and jobs
joanhey Apr 13, 2023
f10c14c
Fix typo [ci skip]
joanhey Apr 13, 2023
76c85b1
Add dir and normalize file names
joanhey Apr 13, 2023
4fc06bd
[ci only 20]
joanhey Apr 13, 2023
027cff4
Delete dir in workflows
joanhey Apr 13, 2023
4c002c2
Change build for compile PHP in name
joanhey Apr 14, 2023
5877733
Update Nginx v1.24.0
joanhey Apr 14, 2023
3199df4
Disable dtrace [compile-php]
joanhey Apr 16, 2023
add95a1
Add validation for compile path
joanhey Apr 16, 2023
8e9c881
Check for compiled PHP in test
joanhey Apr 16, 2023
ee50dd0
Ini test use the ini in .github/ngx-php
joanhey Apr 16, 2023
d9d47ec
Fix expected response body in ini test
joanhey Apr 16, 2023
47b67ce
Enable opcache in compiler
joanhey Apr 16, 2023
1d7c7f2
Test show php-config, as don't create a binary
joanhey Apr 16, 2023
da77fea
Add parallel processing to Make
joanhey Apr 16, 2023
a5c287f
Add -j $(nproc) to ngx-php compile
joanhey Apr 16, 2023
61c7ba6
Add [ci only compile]
joanhey Apr 16, 2023
ab512cd
Workflow simplify with fromJSON()
joanhey Apr 16, 2023
4f2d2a2
Revert "Workflow simplify with fromJSON()"
joanhey Apr 16, 2023
10b9b4a
First job is compile PHP
joanhey Apr 16, 2023
702acdb
Less verbose tags in commit name
joanhey Apr 16, 2023
7a86711
Change tag to < as # is for issues and PR
joanhey Apr 16, 2023
895adcb
Load opcache.so extension
joanhey Apr 16, 2023
014fcd2
Fix php_ini_path in testing jit
joanhey Apr 16, 2023
1cdb604
Fix to enable Jit
joanhey Apr 17, 2023
48a81b2
Add priority in .ini
joanhey Apr 17, 2023
e66cc0a
Enable JIT forcing with sed
joanhey Apr 17, 2023
3fdcf51
Force enable JIT with sed in php embed
joanhey Apr 17, 2023
6b80633
Fix JIT with sed after install PHP
joanhey Apr 17, 2023
2f4e749
Fix JIT test
joanhey Apr 17, 2023
c651fb1
Fixing JIT
joanhey Apr 17, 2023
948859e
Add test to return ini_get('opcache.jit');
joanhey Apr 17, 2023
5b4630f
Change quotes
joanhey Apr 17, 2023
ba3c416
Jit test for php < 8
joanhey Apr 17, 2023
9255694
Add jit_buffer_size to jit ini value test
joanhey Apr 17, 2023
1ed4797
Set ini_set("jit", "tracing") at runtime
joanhey Apr 17, 2023
f57e33d
Change compile-ngx when don't compile PHP
joanhey Apr 17, 2023
3b9d9a8
Add opcache when install PHP
joanhey Apr 17, 2023
fa9bfda
Use github action setup-php
joanhey Apr 17, 2023
63e698c
Use setup-php action in all workflows
joanhey Apr 17, 2023
81aba23
Add dev and embed extensions again
joanhey Apr 17, 2023
d2447df
Add test PHP Nightly in branch Development
joanhey Apr 17, 2023
4120b3d
Ini_set jit again at runtime
joanhey Apr 17, 2023
f1ecbfa
Add sed fix to ondrej ppa
joanhey Apr 17, 2023
bfdfb34
Add world.sql for faster build
joanhey Apr 17, 2023
93c9b72
Disable ini_set jit
joanhey Apr 17, 2023
0d88046
Compile use world.sql direct
joanhey Apr 17, 2023
65c59c1
Move ls in test.sh
joanhey Apr 17, 2023
1002660
Update info tests in README
joanhey Apr 17, 2023
20f44c4
Move install Nginx::tests after compile
joanhey Apr 17, 2023
e6719ca
Change almost all ngx_php for ngx-php
joanhey Apr 17, 2023
a7e9f33
Changed build badge and delete travis badge
joanhey Apr 17, 2023
dd5c735
Change to ngx-php the most important
joanhey Apr 17, 2023
17989c6
Better use of make -j
joanhey Apr 17, 2023
9e9af09
Merge pull request #168 from joanhey/tests-info
rryqszq4 Apr 18, 2023
46a6340
Merge pull request #166 from joanhey/22.04-compile
rryqszq4 Apr 21, 2023
2c16e98
[src] Remove dtrace exception thrown.
Apr 24, 2023
97f5e2b
Merge pull request #169 from rryqszq4/next
rryqszq4 Apr 24, 2023
4fe684a
Test POST arg +10k
joanhey Aug 26, 2023
cb55527
Fix 10k test
joanhey Aug 26, 2023
b6d4d4e
New url for 10k post test
joanhey Aug 26, 2023
3d0e0fc
Add echo
joanhey Aug 26, 2023
98903e7
Merge pull request #177 from joanhey/10k
rryqszq4 Sep 5, 2023
92acdc7
Run php 8.3 test in next branch
joanhey Nov 30, 2023
fb0dedb
Fix ini_entries
joanhey Nov 30, 2023
e2b32f0
Add php 8.3 to tests
joanhey Nov 30, 2023
6ce99d8
Fix typo
joanhey Nov 30, 2023
d68b0df
Fix tests
joanhey Nov 30, 2023
8ad667c
Add Ubuntu 22.04 in tests
joanhey Nov 30, 2023
6480605
Disable xdebug in tests
joanhey Nov 30, 2023
256fc74
Merge pull request #178 from joanhey/ini_entries
rryqszq4 Dec 3, 2023
3b0924a
Merge branch 'master' into development
rryqszq4 Dec 5, 2023
309ba68
Merge pull request #180 from rryqszq4/next
rryqszq4 Dec 5, 2023
42fb4ff
[t] Test ngx_post_args
rryqszq4 Dec 5, 2023
e6cd543
Disable tests with Ubuntu 22.04
joanhey Dec 5, 2023
3e167b9
Merge pull request #181 from joanhey/disable-tests-22.04
rryqszq4 Dec 5, 2023
d5b6538
[src] Release 0.0.28
rryqszq4 Dec 5, 2023
915ec3c
[t] version update.
rryqszq4 Dec 5, 2023
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
4 changes: 2 additions & 2 deletions .github/ngx-php/compile-ngx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export PHP_CONFIG="/usr/bin/php-config$PHP_SRC_VERSION"
export PHP_LIB='/usr/lib'
export NGX_PHP_LIBS="`$PHP_CONFIG --ldflags` `$PHP_CONFIG --libs` -L$PHP_LIB -lphp$PHP_MAJOR_VERSION "

php-config$PHP_SRC_VERSION
php-config
#ls ${PHP_SRC_ROOT}

echo "Nginx install ..."
Expand All @@ -47,7 +47,7 @@ else
--add-dynamic-module=../third_party/ngx_devel_kit \
--add-dynamic-module=..
fi
make
make -j$(nproc)
make install
if [ $? -eq 0 ];then
echo "Nginx install ... done"
Expand Down
20 changes: 13 additions & 7 deletions .github/ngx-php/compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ echo "php install ..."
--without-pear \
--disable-cli \
--disable-cgi \
--enable-dtrace \
--enable-opcache \
--enable-embed=shared
make
make -j$(nproc)
make install
#sudo ln -s ${PHP_SRC_ROOT}/lib/libphp7.so /usr/lib/libphp7.so
#sudo ln -s ${PHP_SRC_ROOT}/lib/libphp7.so /usr/local/lib/libphp7.so
echo "php install ... done"
cp php.ini-production ${PHP_SRC_ROOT}'/php.ini'

# Show php-config
../php/bin/php-config

cd ..
echo "nginx download ..."
wget http://nginx.org/download/nginx-${NGINX_SRC_VERSION}.tar.gz
Expand All @@ -81,19 +84,22 @@ export NGX_PHP_LIBS="`$PHP_CONFIG --ldflags` `$PHP_CONFIG --libs` -L$PHP_LIB -lp

ls ${PHP_SRC_ROOT}

# Show pwd
pwd

echo "nginx install ..."
if [ ! "${NGINX_MODULE}" = "DYNAMIC" ]; then
./configure --prefix=${NGINX_SRC_ROOT} \
--with-ld-opt="-Wl,-rpath,$PHP_LIB" \
--add-module=../../../ngx_php7/third_party/ngx_devel_kit \
--add-module=../../../ngx_php7
--add-module=../../third_party/ngx_devel_kit \
--add-module=../..
else
./configure --prefix=${NGINX_SRC_ROOT} \
--with-ld-opt="-Wl,-rpath,$PHP_LIB" \
--add-dynamic-module=../../../ngx_php7/third_party/ngx_devel_kit \
--add-dynamic-module=../../../ngx_php7
--add-dynamic-module=../../third_party/ngx_devel_kit \
--add-dynamic-module=../..
fi
make
make -j$(nproc)
make install
if [ $? -eq 0 ];then
echo "nginx install ... done"
Expand Down
4 changes: 4 additions & 0 deletions .github/ngx-php/php/99-opcache.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
; priority=99
# bypass the forced JIT disabled in ondrej ppa
zend_extension=opcache.so
opcache.jit=tracing
1 change: 1 addition & 0 deletions .github/ngx-php/php/99-xdebug.ini
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
; priority=99
xdebug.mode=off
4 changes: 3 additions & 1 deletion .github/ngx-php/php/php.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
zend_extension=opcache.so

opcache.enable=1
opcache.enable_cli=1
#opcache.validate_timestamps=0
Expand All @@ -7,4 +9,4 @@ opcache.enable_cli=1
#memory_limit = 512M

opcache.jit_buffer_size=128M
opcache.jit=tracing
opcache.jit=tracing
21 changes: 18 additions & 3 deletions .github/ngx-php/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@

# Show PHP cli
echo "PHP version ..."
/usr/bin/php${PHP_SRC_VERSION} -v

PHP_COMPILE_PATH=`pwd`'/build/php'
if [ -d "$PHP_COMPILE_PATH" ]; then
${PHP_COMPILE_PATH}'/bin/php-config'
else
/usr/bin/php${PHP_SRC_VERSION} -v
fi

ls

echo "Ngx-php test ..."
NGX_PATH=`pwd`'/nginx/sbin'

NGINX_COMPILE_PATH=`pwd`'/build/nginx/sbin'
if [ -d "$NGINX_COMPILE_PATH" ]; then
NGX_PATH=${NGINX_COMPILE_PATH}
else
NGX_PATH=`pwd`'/nginx/sbin'
fi

${NGX_PATH}/nginx -V
export PATH=${NGX_PATH}:$PATH
NGX_MODULE_PATH=`pwd`'/nginx/modules'
Expand All @@ -19,5 +34,5 @@ fi

export TRAVIS_BUILD_DIR=`pwd`
echo $TRAVIS_BUILD_DIR
ls

prove -r t
5,437 changes: 5,437 additions & 0 deletions .github/ngx-php/world.sql

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on:
push:
paths:
- "src/**"
- "t/**"
- "third_party/**"
- ".github/**"
pull_request:
paths:
- "src/**"
- "t/**"
- "third_party/**"
- ".github/**"

# later try to pass it, and not repeat it in workflows
env:
DB_DATABASE: ngx_php
DB_USER: ngx_php
DB_PASSWORD: ngx_php

jobs:
build_php_22-04:
name: Compile PHP 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

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

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

on:
workflow_call:

env:
DB_DATABASE: ngx_php
DB_USER: ngx_php
DB_PASSWORD: ngx_php

jobs:
build:
runs-on: ubuntu-20.04

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
# 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 }}

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

- 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.ngxinx_version }}
run: |
wget http://nginx.org/download/nginx-${{ matrix.ngxinx_version }}.tar.gz
tar -zxf nginx-${{ matrix.ngxinx_version }}.tar.gz

- name: Compile Ngx-php
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
NGINX_SRC_VERSION: ${{ matrix.ngxinx_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 apt-get install -y redis-server redis-tools memcached
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 sed -i "s|opcache.jit=off|opcache.jit=tracing|g" /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
name: Build dynamic test
name: Build dynamic test 20.04

on:
push:
paths:
- "src/**"
- "t/**"
- "third_party/**"
- ".github/**"
pull_request:
paths:
- "src/**"
- "t/**"
- "third_party/**"
- ".github/**"
workflow_call:

env:
DB_DATABASE: ngx_php
Expand All @@ -25,8 +14,8 @@ jobs:

strategy:
matrix:
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
ngxinx_version: ["1.20.2", "1.22.1", "1.23.4"] # "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"]
ngxinx_version: ["1.20.2", "1.22.1", "1.24.0"] # "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
Expand All @@ -36,13 +25,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update -yqq >/dev/null && sudo apt-get upgrade -yqq >/dev/null
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev

- name: Install PHP-${{ matrix.php_version }}
run: sudo apt-get install php${{ matrix.php_version }}-cli php${{ matrix.php_version }}-dev libphp${{ matrix.php_version }}-embed php${{ matrix.php_version }}-mysql
- 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.ngxinx_version }}
run: |
Expand All @@ -60,10 +51,7 @@ jobs:
run: |
sudo systemctl start mysql.service
mysql -uroot -proot -e 'CREATE DATABASE ${{ env.DB_DATABASE }};'
if [ ! -d data-cache ]; then mkdir data-cache; fi
if [ ! -f data-cache/world-db.tar.gz ]; then wget -O data-cache/world-db.tar.gz https://downloads.mysql.com/docs/world-db.tar.gz; fi
tar zxvf data-cache/world-db.tar.gz
mysql -uroot -proot < world-db/world.sql
mysql -uroot -proot < .github/ngx-php/world.sql

- name: Install Redis & Memcached
run: |
Expand All @@ -77,6 +65,5 @@ jobs:
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 sed -i "s|opcache.jit=off|opcache.jit=tracing|g" /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
41 changes: 15 additions & 26 deletions .github/workflows/ngx_php.yml → .github/workflows/build_22.04.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
name: Build test
name: 22.04 Ngx-php & PHP build test

on:
push:
paths:
- "src/**"
- "t/**"
- "third_party/**"
- ".github/**"
pull_request:
paths:
- "src/**"
- "t/**"
- "third_party/**"
- ".github/**"
workflow_call:

env:
DB_DATABASE: ngx_php
Expand All @@ -21,12 +10,12 @@ env:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
ngxinx_version: ["1.20.2", "1.22.1", "1.23.4"] # "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"]
ngxinx_version: ["1.20.2", "1.22.1", "1.24.0"] # "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
Expand All @@ -36,13 +25,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update -yqq >/dev/null && sudo apt-get upgrade -yqq >/dev/null
run: sudo apt-get install -yqq cpanminus libxml2-dev systemtap-sdt-dev zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev

- name: Install PHP-${{ matrix.php_version }}
run: sudo apt-get install php${{ matrix.php_version }}-cli php${{ matrix.php_version }}-dev libphp${{ matrix.php_version }}-embed php${{ matrix.php_version }}-mysql
- 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.ngxinx_version }}
run: |
Expand All @@ -59,10 +50,7 @@ jobs:
run: |
sudo systemctl start mysql.service
mysql -uroot -proot -e 'CREATE DATABASE ${{ env.DB_DATABASE }};'
if [ ! -d data-cache ]; then mkdir data-cache; fi
if [ ! -f data-cache/world-db.tar.gz ]; then wget -O data-cache/world-db.tar.gz https://downloads.mysql.com/docs/world-db.tar.gz; fi
tar zxvf data-cache/world-db.tar.gz
mysql -uroot -proot < world-db/world.sql
mysql -uroot -proot < .github/ngx-php/world.sql

- name: Install Redis & Memcached
run: |
Expand All @@ -78,4 +66,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
./.github/ngx-php/test.sh
Loading
Loading