Skip to content

Commit

Permalink
Fix JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed May 19, 2024
1 parent 3ba5cf3 commit f52f8cc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 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 Down Expand Up @@ -64,5 +64,5 @@ jobs:
env:
PHP_SRC_VERSION: ${{ matrix.php_version }}
run: |
echo opcache.jit=tracing | sudo tee --append /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
echo echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
16 changes: 8 additions & 8 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 @@ -15,12 +15,12 @@ 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.25.4"] # "1.12.2" fail to compile
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@v4
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 echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
4 changes: 2 additions & 2 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 Down Expand Up @@ -67,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 echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
4 changes: 2 additions & 2 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 Down Expand Up @@ -66,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 echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
4 changes: 2 additions & 2 deletions .github/workflows/build_24.04.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 24.04 Ngx-php & PHP build test
name: Build 24.04

on:
workflow_call:
Expand Down Expand Up @@ -66,5 +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
sudo echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
4 changes: 2 additions & 2 deletions .github/workflows/build_24.04_dynamic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build dynamic test Ubuntu 24.04
name: Build dynamic 24.04

on:
workflow_call:
Expand Down Expand Up @@ -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 echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh
2 changes: 1 addition & 1 deletion .github/workflows/build_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,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 echo "opcache.jit=tracing" >> /etc/php/${PHP_SRC_VERSION}/embed/conf.d/10-opcache.ini
./.github/ngx-php/test.sh

0 comments on commit f52f8cc

Please sign in to comment.