mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
try CMD to run multiple lines of code
This commit is contained in:
+12
-11
@@ -40,11 +40,12 @@ jobs:
|
||||
make
|
||||
|
||||
- name: Install dependencies
|
||||
# get path to composer.phar so we can run it with custom php.ini
|
||||
# Force to install [email protected] to support [email protected]
|
||||
run: |
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
php composer-setup.php
|
||||
php -c php.ini composer.phar require --dev --ignore-platform-reqs phpunit/phpunit "4.8.36"
|
||||
php -c php.ini composer.phar update --no-interaction
|
||||
COMPOSER_PHAR=$(realpath $(which composer))
|
||||
php -c php.ini $COMPOSER_PHAR require --dev --ignore-platform-reqs phpunit/phpunit "4.8.36"
|
||||
php -c php.ini $COMPOSER_PHAR update --no-interaction
|
||||
|
||||
php-linux-x64:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -111,19 +112,19 @@ jobs:
|
||||
uses: cmb69/[email protected]
|
||||
with:
|
||||
version: '8.0'
|
||||
arch: x64
|
||||
arch: ${{ matrix.arch }}
|
||||
ts: ts
|
||||
deps: openssl
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: ${{ matrix.arch }}
|
||||
toolset: ${{steps.setup-php-sdk.outputs.toolset}}
|
||||
# CMD only execute one commend per run
|
||||
- run: phpize
|
||||
- run: .\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared --enable-cli --enable-openssl
|
||||
- run: nmake
|
||||
- run: nmake generate-php-ini
|
||||
- run: .\dev-scripts\run_tests.bat ${{steps.setup-php-sdk.outputs.prefix}}\php
|
||||
- run: |
|
||||
phpize
|
||||
.\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.bat ${{steps.setup-php-sdk.outputs.prefix}}\php
|
||||
|
||||
# windows-vc14:
|
||||
# runs-on: windows-latest
|
||||
|
||||
Reference in New Issue
Block a user