From 8c66121b2f7d0488454814b51ae81847f286aec8 Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Thu, 23 Feb 2023 17:45:11 -0800 Subject: [PATCH] I don't know --- .github/workflows/ci.yml | 2 +- dev-scripts/run_tests.bat | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ec9a0d..9fbeb6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,7 +118,7 @@ jobs: - name: Build ${{ env.PACKAGE_NAME }} + consumers run: | phpize - .\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared --enable-cli --with-openssl + .\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared --enable-cli --enable-openssl nmake nmake generate-php-ini .\dev-scripts\run_tests ${{steps.setup-php-sdk.outputs.prefix}}\php diff --git a/dev-scripts/run_tests.bat b/dev-scripts/run_tests.bat index baa20df..5611d2c 100644 --- a/dev-scripts/run_tests.bat +++ b/dev-scripts/run_tests.bat @@ -16,15 +16,14 @@ REM Check if composer_dir was found if "%composer_dir%"=="" ( echo No composer found. exit /b 1 -) else ( - set "script_dir=%~dp0" - set "work_dir=%script_dir%/.." - cd %work_dir% - echo %work_dir% - ls x64\ - - call %PHP_BINARY% -c php-win.ini %composer_dir% update - call %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug ) +set "script_dir=%~dp0" +set "work_dir=%script_dir%/.." +cd %work_dir% + +call %PHP_BINARY% -c php-win.ini %composer_dir% update +call %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug + + endlocal \ No newline at end of file