mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
* Updated to latest aws-crt-ffi, updated EventLoopGroup/options init * Removed test-ci target, just use test for everything now * Added event_loop_group API to CRT/stubs * Removed headers (all generated) from format-check * Added the ability to force extension vs FFI * make test will now trigger composer run test/phpunit, and force tests with both FFI and extension * Updated builder version, removed redundant php7 test run * Removed type annotations that anger php5, limited backends on php5
92 lines
3.5 KiB
YAML
92 lines
3.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
- '!main'
|
|
|
|
env:
|
|
BUILDER_VERSION: v0.8.9
|
|
BUILDER_SOURCE: releases
|
|
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
|
|
PACKAGE_NAME: aws-crt-php
|
|
LINUX_BASE_IMAGE: ubuntu-16-x64
|
|
RUN: ${{ github.run_id }}-${{ github.run_number }}
|
|
|
|
jobs:
|
|
php7-linux-x64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Build PHP 7.4 with ffi
|
|
run: |
|
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
|
|
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-php7-linux-x64:${{ env.BUILDER_VERSION }}
|
|
docker pull $DOCKER_IMAGE
|
|
docker run --env GITHUB_REF --env LC_ALL=C.UTF-8 $DOCKER_IMAGE --version=${{env.BUILDER_VERSION}} build -p ${{ env.PACKAGE_NAME }} --spec=downstream --skip-install
|
|
|
|
php5-linux-x64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Build PHP 5.6 extension
|
|
run: |
|
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
|
|
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-php5-linux-x64:${{ env.BUILDER_VERSION }}
|
|
docker pull $DOCKER_IMAGE
|
|
docker run --env GITHUB_REF --env LC_ALL=C.UTF-8 $DOCKER_IMAGE --version=${{env.BUILDER_VERSION}} build -p ${{ env.PACKAGE_NAME }} --spec=downstream --skip-install
|
|
|
|
# linux-arm:
|
|
# name: ARM (${{ matrix.arch }})
|
|
# runs-on: ubuntu-latest
|
|
# strategy:
|
|
# matrix:
|
|
# arch: [armv6, armv7, arm64]
|
|
# steps:
|
|
# - name: Build ${{ env.PACKAGE_NAME }}
|
|
# run: |
|
|
# 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
|
|
# ./builder build -p ${{ env.PACKAGE_NAME }} --target=linux-${{ matrix.arch }} --spec=downstream
|
|
|
|
# windows-vc16:
|
|
# runs-on: windows-latest
|
|
# strategy:
|
|
# matrix:
|
|
# arch: [x64]
|
|
# steps:
|
|
# - uses: ilammy/msvc-dev-cmd@v1
|
|
# with:
|
|
# arch: ${{ matrix.arch }}
|
|
# uwp: false
|
|
# spectre: true
|
|
# - name: Build ${{ env.PACKAGE_NAME }} + consumers
|
|
# run: |
|
|
# python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
|
|
# python builder.pyz build -p ${{ env.PACKAGE_NAME }} --spec=downstream
|
|
|
|
# windows-vc14:
|
|
# runs-on: windows-latest
|
|
# strategy:
|
|
# matrix:
|
|
# arch: [x86, x64]
|
|
# steps:
|
|
# - uses: ilammy/msvc-dev-cmd@v1
|
|
# with:
|
|
# toolset: 14.0
|
|
# arch: ${{ matrix.arch }}
|
|
# uwp: false
|
|
# spectre: true
|
|
# - name: Build ${{ env.PACKAGE_NAME }} + consumers
|
|
# run: |
|
|
# python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
|
|
# python builder.pyz build -p ${{ env.PACKAGE_NAME }} downstream
|
|
|
|
# osx:
|
|
# runs-on: macos-latest
|
|
# steps:
|
|
# - name: Build ${{ env.PACKAGE_NAME }} + consumers
|
|
# run: |
|
|
# 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
|
|
# ./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream
|