Skip to content

Commit

Permalink
ci: update PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Sep 25, 2024
1 parent b3ed0d7 commit 4ab46ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 128 deletions.
128 changes: 8 additions & 120 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:

jobs:
old-matrix-0:
name: php-7.0-debug-zts
name: php-7.4-debug-zts
env:
PHP: "7.0"
PHP: "7.4"
enable_debug: "yes"
enable_maintainer_zts: "yes"
enable_session: "yes"
Expand All @@ -36,9 +36,9 @@ jobs:
make -f scripts/ci/Makefile test
old-matrix-1:
name: php-7.1-debug-zts
name: php-8.0-debug-nozts
env:
PHP: "7.1"
PHP: "8.0"
enable_debug: "yes"
enable_maintainer_zts: "yes"
enable_session: "yes"
Expand All @@ -64,9 +64,9 @@ jobs:
make -f scripts/ci/Makefile test
old-matrix-2:
name: php-7.2-debug-zts
name: php-8.1-debug-nozts
env:
PHP: "7.2"
PHP: "8.1"
enable_debug: "yes"
enable_maintainer_zts: "yes"
enable_session: "yes"
Expand All @@ -92,37 +92,9 @@ jobs:
make -f scripts/ci/Makefile test
old-matrix-3:
name: php-7.3-debug-zts
name: php-8.2-debug-nozts
env:
PHP: "7.3"
enable_debug: "yes"
enable_maintainer_zts: "yes"
enable_session: "yes"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install
run: |
sudo apt-get install -y \
php-cli \
php-pear \
re2c
- name: Prepare
run: |
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
- name: Build
run: |
make -f scripts/ci/Makefile ext PECL=msgpack
- name: Test
run: |
make -f scripts/ci/Makefile test
old-matrix-4:
name: php-7.4-debug-zts
env:
PHP: "7.4"
PHP: "8.2"
enable_debug: "yes"
enable_maintainer_zts: "yes"
enable_session: "yes"
Expand Down Expand Up @@ -176,90 +148,6 @@ jobs:
run: |
make -f scripts/ci/Makefile test
cur-matrix-0:
name: php-8.0-debug-zts
env:
PHP: "8.0"
enable_debug: "yes"
enable_zts: "yes"
enable_session: "yes"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install
run: |
sudo apt-get install -y \
php-cli \
php-pear \
re2c
- name: Prepare
run: |
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
- name: Build
run: |
make -f scripts/ci/Makefile ext PECL=msgpack
- name: Test
run: |
make -f scripts/ci/Makefile test
cur-matrix-1:
name: php-8.1-debug-zts
env:
PHP: "8.1"
enable_debug: "yes"
enable_zts: "yes"
enable_session: "yes"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install
run: |
sudo apt-get install -y \
php-cli \
php-pear \
re2c
- name: Prepare
run: |
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
- name: Build
run: |
make -f scripts/ci/Makefile ext PECL=msgpack
- name: Test
run: |
make -f scripts/ci/Makefile test
cur-matrix-2:
name: php-8.2-debug-zts
env:
PHP: "8.2"
enable_debug: "yes"
enable_zts: "yes"
enable_session: "yes"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install
run: |
sudo apt-get install -y \
php-cli \
php-pear \
re2c
- name: Prepare
run: |
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
- name: Build
run: |
make -f scripts/ci/Makefile ext PECL=msgpack
- name: Test
run: |
make -f scripts/ci/Makefile test
cur-none-0:
name: php-8.3-nodebug-nozts
env:
Expand Down
9 changes: 1 addition & 8 deletions scripts/gen_github_workflow_ci.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function jobname(string $id, array $env) : string {
$job = $gen->github([
"old-matrix" => [
// most useful for all additional versions except current
"PHP" => ["7.0", "7.1", "7.2", "7.3", "7.4"],
"PHP" => ["7.4", "8.0", "8.1", "8.2"],
"enable_debug" => "yes",
"enable_maintainer_zts" => "yes",
"enable_session" => "yes",
Expand All @@ -40,13 +40,6 @@ function jobname(string $id, array $env) : string {
"enable_zts" => "yes",
"enable_session" => "yes",
],
"cur-matrix" => [
// most useful for all additional versions except current
"PHP" => ["8.0", "8.1", "8.2"],
"enable_debug" => "yes",
"enable_zts" => "yes",
"enable_session" => "yes",
],
"cur-none" => [
// everything disabled for current
"PHP" => $cur,
Expand Down

0 comments on commit 4ab46ff

Please sign in to comment.