From 9862779ebcc199dcc13412c129d94511378b0896 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 25 Sep 2024 20:19:36 +0200 Subject: [PATCH] ci: update PHP versions --- .github/workflows/ci.yml | 144 ++++------------------------- scripts/gen_github_workflow_ci.php | 4 +- 2 files changed, 20 insertions(+), 128 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd250c6..68bd60a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,9 @@ on: jobs: old-matrix-0: - name: "old-matrix-0 (7.0)" + name: "old-matrix-0 (7.4)" env: - PHP: "7.0" + PHP: "7.4" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" @@ -44,9 +44,9 @@ jobs: make -f scripts/ci/Makefile test old-matrix-1: - name: "old-matrix-1 (7.1)" + name: "old-matrix-1 (8.0)" env: - PHP: "7.1" + PHP: "8.0" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" @@ -80,9 +80,9 @@ jobs: make -f scripts/ci/Makefile test old-matrix-2: - name: "old-matrix-2 (7.2)" + name: "old-matrix-2 (8.1)" env: - PHP: "7.2" + PHP: "8.1" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" @@ -116,117 +116,9 @@ jobs: make -f scripts/ci/Makefile test old-matrix-3: - name: "old-matrix-3 (7.3)" - env: - PHP: "7.3" - enable_debug: "yes" - enable_maintainer_zts: "yes" - enable_json: "yes" - PQ_DSN: "postgres:///runner" - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - name: Install - run: | - sudo apt-get install -y \ - php-cli \ - php-pear \ - libpq-dev \ - re2c - - name: Prepare - run: | - make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php - make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - - name: Build - run: | - make -f scripts/ci/Makefile ext PECL=pq - - name: Prepare Test - run: | - sudo systemctl start postgresql - sudo -u postgres createuser --login runner - sudo -u postgres createdb -O runner runner - - name: Test - run: | - make -f scripts/ci/Makefile test - - old-matrix-4: - name: "old-matrix-4 (7.4)" + name: "old-matrix-3 (8.2)" env: - PHP: "7.4" - enable_debug: "yes" - enable_maintainer_zts: "yes" - enable_json: "yes" - PQ_DSN: "postgres:///runner" - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - name: Install - run: | - sudo apt-get install -y \ - php-cli \ - php-pear \ - libpq-dev \ - re2c - - name: Prepare - run: | - make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php - make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - - name: Build - run: | - make -f scripts/ci/Makefile ext PECL=pq - - name: Prepare Test - run: | - sudo systemctl start postgresql - sudo -u postgres createuser --login runner - sudo -u postgres createdb -O runner runner - - name: Test - run: | - make -f scripts/ci/Makefile test - - old-matrix-5: - name: "old-matrix-5 (8.0)" - env: - PHP: "8.0" - enable_debug: "yes" - enable_maintainer_zts: "yes" - enable_json: "yes" - PQ_DSN: "postgres:///runner" - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - name: Install - run: | - sudo apt-get install -y \ - php-cli \ - php-pear \ - libpq-dev \ - re2c - - name: Prepare - run: | - make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php - make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - - name: Build - run: | - make -f scripts/ci/Makefile ext PECL=pq - - name: Prepare Test - run: | - sudo systemctl start postgresql - sudo -u postgres createuser --login runner - sudo -u postgres createdb -O runner runner - - name: Test - run: | - make -f scripts/ci/Makefile test - - old-matrix-6: - name: "old-matrix-6 (8.1)" - env: - PHP: "8.1" + PHP: "8.2" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" @@ -296,9 +188,9 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-0: - name: "cur-dbg-zts-0 (8.2)" + name: "cur-dbg-zts-0 (8.3)" env: - PHP: "8.2" + PHP: "8.3" enable_debug: "yes" enable_zts: "yes" PQ_DSN: "postgres:///runner" @@ -331,9 +223,9 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-1: - name: "cur-dbg-zts-1 (8.2)" + name: "cur-dbg-zts-1 (8.3)" env: - PHP: "8.2" + PHP: "8.3" enable_debug: "no" enable_zts: "yes" PQ_DSN: "postgres:///runner" @@ -366,9 +258,9 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-2: - name: "cur-dbg-zts-2 (8.2)" + name: "cur-dbg-zts-2 (8.3)" env: - PHP: "8.2" + PHP: "8.3" enable_debug: "yes" enable_zts: "no" PQ_DSN: "postgres:///runner" @@ -401,9 +293,9 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-3: - name: "cur-dbg-zts-3 (8.2)" + name: "cur-dbg-zts-3 (8.3)" env: - PHP: "8.2" + PHP: "8.3" enable_debug: "no" enable_zts: "no" PQ_DSN: "postgres:///runner" @@ -436,11 +328,11 @@ jobs: make -f scripts/ci/Makefile test cur-cov-0: - name: "cur-cov-0 (8.2)" + name: "cur-cov-0 (8.3)" env: CFLAGS: "-O0 -g --coverage" CXXFLAGS: "-O0 -g --coverage" - PHP: "8.2" + PHP: "8.3" PQ_DSN: "postgres:///runner" runs-on: ubuntu-22.04 steps: diff --git a/scripts/gen_github_workflow_ci.php b/scripts/gen_github_workflow_ci.php index 78d770a..1154db5 100755 --- a/scripts/gen_github_workflow_ci.php +++ b/scripts/gen_github_workflow_ci.php @@ -11,10 +11,10 @@ jobs: github([ "old-matrix" => [ - "PHP" => ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"], + "PHP" => ["7.4", "8.0", "8.1", "8.2"], "enable_debug" => "yes", "enable_maintainer_zts" => "yes", "enable_json" => "yes", -- 2.30.2