mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
what's the version
This commit is contained in:
+23
-23
@@ -120,26 +120,26 @@ jobs:
|
|||||||
.\php-sdk\phpsdk-vs16-x64.bat -t .\aws-crt-php\win_build.bat --task-args %CD%\aws-crt-php
|
.\php-sdk\phpsdk-vs16-x64.bat -t .\aws-crt-php\win_build.bat --task-args %CD%\aws-crt-php
|
||||||
|
|
||||||
|
|
||||||
# macos:
|
macos:
|
||||||
# runs-on: macos-${{ matrix.version }}
|
runs-on: macos-${{ matrix.version }}
|
||||||
# strategy:
|
strategy:
|
||||||
# matrix:
|
matrix:
|
||||||
# version: [10.15]
|
version: [10.15]
|
||||||
# steps:
|
steps:
|
||||||
# # Force PHP to 8.0
|
# Force PHP to 8.0
|
||||||
# # Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021)
|
# Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021)
|
||||||
# # due to the old version of PHPUnit we're using.
|
# due to the old version of PHPUnit we're using.
|
||||||
# # We're using an old PHPUnit because it's compatible our min supported PHP 5.5.
|
# We're using an old PHPUnit because it's compatible our min supported PHP 5.5.
|
||||||
# # Quick fix is to force PHP version back to 8.0, which can still run our tests without error.
|
# Quick fix is to force PHP version back to 8.0, which can still run our tests without error.
|
||||||
# # A real solution is to get our tests working on all PHP versions
|
# A real solution is to get our tests working on all PHP versions
|
||||||
# # (maybe don't use PHPUnit, maybe raise our min supported PHP version so we can upgrade,
|
# (maybe don't use PHPUnit, maybe raise our min supported PHP version so we can upgrade,
|
||||||
# # or maybe use PHPUnit-Polyfills so we can use a modern PHPUnit with old PHP)
|
# or maybe use PHPUnit-Polyfills so we can use a modern PHPUnit with old PHP)
|
||||||
# - name: Setup PHP 8.0
|
- name: Setup PHP 8.0
|
||||||
# uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
# with:
|
with:
|
||||||
# php-version: '8.0'
|
php-version: '8.0'
|
||||||
# - name: Build PHP 8 extension and test
|
- name: Build PHP 8 extension and test
|
||||||
# run: |
|
run: |
|
||||||
# python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
|
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
|
||||||
# chmod a+x builder
|
chmod a+x builder
|
||||||
# ./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream
|
./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream
|
||||||
|
|||||||
@@ -33,5 +33,7 @@ $(AWSCRT_DIR)\ext\api.h : $(AWSCRT_DIR)\src\api.h
|
|||||||
test-awscrt: install $(AWSCRT_DIR)\src\api.h $(BUILD_DIR)\php_awscrt.dll
|
test-awscrt: install $(AWSCRT_DIR)\src\api.h $(BUILD_DIR)\php_awscrt.dll
|
||||||
curl -o composer-setup.php https://getcomposer.org/installer
|
curl -o composer-setup.php https://getcomposer.org/installer
|
||||||
php .\composer-setup.php
|
php .\composer-setup.php
|
||||||
|
php --version
|
||||||
|
$(PHP_BINARY) --version
|
||||||
$(PHP_BINARY) -c $(AWSCRT_DIR)\php-win.ini .\composer.phar --working-dir=$(AWSCRT_DIR) update
|
$(PHP_BINARY) -c $(AWSCRT_DIR)\php-win.ini .\composer.phar --working-dir=$(AWSCRT_DIR) update
|
||||||
$(PHP_BINARY) -c $(AWSCRT_DIR)\php-win.ini .\composer.phar --working-dir=$(AWSCRT_DIR) run test-win
|
$(PHP_BINARY) -c $(AWSCRT_DIR)\php-win.ini .\composer.phar --working-dir=$(AWSCRT_DIR) run test-win
|
||||||
|
|||||||
Reference in New Issue
Block a user