mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 10:07:12 +00:00
Update CI
This commit is contained in:
+21
-21
@@ -38,13 +38,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Build for PHP 5.5
|
- name: Build for PHP 5.5
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang -Wno-error
|
||||||
CXX: clang++
|
CXX: clang++ -Wno-error
|
||||||
run: |
|
run: |
|
||||||
phpize
|
phpize
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
|
make test
|
||||||
php-linux-x64:
|
php-linux-x64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
@@ -71,33 +71,33 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install ancient PHPUnit
|
||||||
|
run: composer require --dev --ignore-platform-reqs phpunit/phpunit "4.8.36"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer update --no-interaction
|
run: composer update --no-interaction
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang -Wno-error
|
||||||
CXX: clang++
|
CXX: clang++ -Wno-error
|
||||||
run: |
|
run: |
|
||||||
phpize
|
phpize
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make test
|
make test
|
||||||
|
linux-arm:
|
||||||
|
name: ARM (${{ matrix.arch }})
|
||||||
# linux-arm:
|
runs-on: ubuntu-latest
|
||||||
# name: ARM (${{ matrix.arch }})
|
strategy:
|
||||||
# runs-on: ubuntu-latest
|
matrix:
|
||||||
# strategy:
|
arch: [armv6, armv7, arm64]
|
||||||
# matrix:
|
steps:
|
||||||
# arch: [armv6, armv7, arm64]
|
- name: Build ${{ env.PACKAGE_NAME }}
|
||||||
# steps:
|
run: |
|
||||||
# - name: Build ${{ env.PACKAGE_NAME }}
|
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
|
||||||
# run: |
|
chmod a+x builder
|
||||||
# python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
|
./builder build -p ${{ env.PACKAGE_NAME }} --target=linux-${{ matrix.arch }} --spec=downstream
|
||||||
# chmod a+x builder
|
|
||||||
# ./builder build -p ${{ env.PACKAGE_NAME }} --target=linux-${{ matrix.arch }} --spec=downstream
|
|
||||||
|
|
||||||
# windows-vc16:
|
# windows-vc16:
|
||||||
# runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
# strategy:
|
# strategy:
|
||||||
@@ -153,4 +153,4 @@ jobs:
|
|||||||
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
|
||||||
Reference in New Issue
Block a user