get the full path of the extension

This commit is contained in:
Dengke Tang
2023-02-27 15:38:04 -08:00
parent 047d3d20c1
commit 65e179fc72
3 changed files with 4 additions and 5 deletions
+1 -3
View File
@@ -120,13 +120,11 @@ jobs:
toolset: ${{steps.setup-php-sdk.outputs.toolset}} toolset: ${{steps.setup-php-sdk.outputs.toolset}}
- name: Build ${{ env.PACKAGE_NAME }} + consumers - name: Build ${{ env.PACKAGE_NAME }} + consumers
run: | run: |
ls php-bin
ls php-bin/ext
phpize phpize
.\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared --enable-cli --enable-openssl .\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared --enable-cli --enable-openssl
nmake nmake
nmake generate-php-ini nmake generate-php-ini
composer update --ignore-platform-req=ext-awscrt type .\php-win.ini
.\dev-scripts\run_tests ${{steps.setup-php-sdk.outputs.prefix}}\php .\dev-scripts\run_tests ${{steps.setup-php-sdk.outputs.prefix}}\php
# windows-vc14: # windows-vc14:
+2 -2
View File
@@ -27,5 +27,5 @@ $(AWSCRT_DIR)\ext\api.h: $(AWSCRT_DIR)\crt\aws-crt-ffi\src\api.h
# Get the dll directory to load # Get the dll directory to load
generate-php-ini: generate-php-ini:
@echo extension=$(BUILD_DIR)\php_awscrt.dll > php-win.ini @echo extension=$(BUILD_DIR)\php_awscrt.dll > php-win.ini
@echo extension=$(PHP_PREFIX)\ext\php_openssl.dll >> php-win.ini @echo extension=$(PHP_PREFIX)\php_openssl.dll >> php-win.ini
@echo extension=$(PHP_PREFIX)\ext\php_mbstring.dll >> php-win.ini @echo extension=$(PHP_PREFIX)\php_mbstring.dll >> php-win.ini
+1
View File
@@ -18,6 +18,7 @@ set "script_dir=%~dp0"
set "work_dir=%script_dir%/.." set "work_dir=%script_dir%/.."
cd %work_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 call %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug
endlocal endlocal