try CMD to run multiple lines of code

This commit is contained in:
Dengke Tang
2023-02-28 10:53:25 -08:00
parent b4d352cc18
commit a63ac28fa5
2 changed files with 13 additions and 12 deletions
+12 -11
View File
@@ -40,11 +40,12 @@ jobs:
make make
- name: Install dependencies - 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: | run: |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" COMPOSER_PHAR=$(realpath $(which composer))
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 require --dev --ignore-platform-reqs phpunit/phpunit "4.8.36" php -c php.ini $COMPOSER_PHAR update --no-interaction
php -c php.ini composer.phar update --no-interaction
php-linux-x64: php-linux-x64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -111,19 +112,19 @@ jobs:
uses: cmb69/[email protected] uses: cmb69/[email protected]
with: with:
version: '8.0' version: '8.0'
arch: x64 arch: ${{ matrix.arch }}
ts: ts ts: ts
deps: openssl deps: openssl
- uses: ilammy/msvc-dev-cmd@v1 - uses: ilammy/msvc-dev-cmd@v1
with: with:
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
toolset: ${{steps.setup-php-sdk.outputs.toolset}} toolset: ${{steps.setup-php-sdk.outputs.toolset}}
# CMD only execute one commend per run - run: |
- run: phpize phpize
- run: .\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
- run: nmake nmake
- run: nmake generate-php-ini nmake generate-php-ini
- run: .\dev-scripts\run_tests.bat ${{steps.setup-php-sdk.outputs.prefix}}\php .\dev-scripts\run_tests.bat ${{steps.setup-php-sdk.outputs.prefix}}\php
# windows-vc14: # windows-vc14:
# runs-on: windows-latest # runs-on: windows-latest
+1 -1
View File
@@ -18,7 +18,7 @@
"php": ">=5.5" "php": ">=5.5"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit":"^5.6.3" "phpunit/phpunit":"^4.8.35|^5.6.3"
}, },
"autoload": { "autoload": {
"classmap": [ "classmap": [