mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 18:13:09 +00:00
windows CI
This commit is contained in:
+25
-15
@@ -95,21 +95,31 @@ jobs:
|
|||||||
# chmod a+x builder
|
# chmod a+x builder
|
||||||
# ./builder build -p ${{ env.PACKAGE_NAME }} --target=linux-${{ matrix.arch }} --spec=downstream
|
# ./builder build -p ${{ env.PACKAGE_NAME }} --target=linux-${{ matrix.arch }} --spec=downstream
|
||||||
|
|
||||||
# windows-vc16:
|
windows-vc16:
|
||||||
# runs-on: windows-latest
|
runs-on: windows-2019
|
||||||
# strategy:
|
strategy:
|
||||||
# matrix:
|
matrix:
|
||||||
# arch: [x64]
|
arch: [x64]
|
||||||
# steps:
|
steps:
|
||||||
# - uses: ilammy/msvc-dev-cmd@v1
|
- uses: actions/checkout@v3
|
||||||
# with:
|
with:
|
||||||
# arch: ${{ matrix.arch }}
|
submodules: recursive
|
||||||
# uwp: false
|
- id: setup-php-sdk
|
||||||
# spectre: true
|
uses: cmb69/[email protected]
|
||||||
# - name: Build ${{ env.PACKAGE_NAME }} + consumers
|
with:
|
||||||
# run: |
|
version: '8.0'
|
||||||
# python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
|
arch: x64
|
||||||
# python builder.pyz build -p ${{ env.PACKAGE_NAME }} --spec=downstream
|
ts: ts
|
||||||
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
with:
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
toolset: ${{steps.setup-php-sdk.outputs.toolset}}
|
||||||
|
- name: Build ${{ env.PACKAGE_NAME }} + consumers
|
||||||
|
run: |
|
||||||
|
phpize
|
||||||
|
.\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared
|
||||||
|
nmake
|
||||||
|
.\dev-scripts\run_tests
|
||||||
|
|
||||||
# windows-vc14:
|
# windows-vc14:
|
||||||
# runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
|
|
||||||
@echo on
|
@echo on
|
||||||
|
setlocal
|
||||||
|
|
||||||
cd ..
|
REM Run command to get composer_dir
|
||||||
|
set "composer_dir="
|
||||||
|
for /f "usebackq delims=" %%i in (`where composer.phar`) do set "composer_dir=%%i"
|
||||||
|
|
||||||
%PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug
|
REM Check if composer_dir was found
|
||||||
|
if "%composer_dir%"=="" (
|
||||||
|
echo No composer found.
|
||||||
|
exit /b 1
|
||||||
|
) else (
|
||||||
|
cd ..
|
||||||
|
php -c php-win.ini %composer_dir% update
|
||||||
|
php -c php-win.ini vendor/bin/phpunit tests --debug
|
||||||
|
)
|
||||||
|
|
||||||
|
endlocal
|
||||||
+4
-1
@@ -1,2 +1,5 @@
|
|||||||
extension=php_awscrt.dll
|
; only works on 64bit build
|
||||||
|
extension=x64\Release\php_awscrt.dll
|
||||||
|
|
||||||
extension=php_openssl.dll
|
extension=php_openssl.dll
|
||||||
|
extension=php_mbstring.dll
|
||||||
|
|||||||
Reference in New Issue
Block a user