From c81c857e321a72621e29a0310279fe5f64ddf553 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 22 Jul 2024 13:58:22 +0200 Subject: [PATCH] Try to successfully run tests on PHP >= 8.2.0 --- .github/workflows/ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94ecff3..974ebaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,8 @@ jobs: shell: cmd strategy: matrix: - version: ["7.4", "8.0", "8.1", "8.2", "8.3"] - arch: [x64, x86] + version: ["8.2", "8.3"] + arch: [x64] ts: [ts] runs-on: windows-2019 steps: @@ -59,8 +59,18 @@ jobs: - name: phpize run: phpize - name: configure - run: configure --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}} + run: configure --enable-test-ini --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}} - name: make run: nmake + - name: patch test ini + run: | + if "${{matrix.arch}}"=="x64" ( + set my_ini_file=x64\Release_TS\tmp-php.ini + ) else ( + set my_ini_file=Release_TS\tmp-php.ini + ) + set mbstring=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll + sed -i "1s/^/extension=%mbstring:\=\\\%\n/" %my_ini_file% + type %my_ini_file% - name: test - run: nmake test TESTS="-d extension=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll --show-diff tests" + run: nmake test TESTS="--show-diff tests"