From f183523de482e1482174b38985cb2602c32bd3ad Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Wed, 22 Feb 2023 14:13:37 -0800 Subject: [PATCH] make a github action to test pecl before release --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .github/workflows/release.yml | 2 +- ext/.gitignore | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab7fc7a..5c08d23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,3 +151,26 @@ jobs: 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 + + pecl-package-test: + runs-on: ubuntu-latest + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Run tests + env: + CC: clang + CXX: clang++ + run: | + dev-scripts/prepare_release.sh --name aws-crt --user aws-crt --email aws-sdk-common-runtime@amazon.com --version 1.0.0 --notes NOTES + ls *.tgz + tar zxvf *.tgz + ls \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba7a117..4a7009a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: id: tag - name: Prepare Package Script - run: dev-scripts/prepare-release.sh --name aws-crt --user aws-crt --email aws-sdk-common-runtime@amazon.com --version ${{ steps.tag.outputs.release_tag }} --notes NOTES + run: dev-scripts/prepare_release.sh --name aws-crt --user aws-crt --email aws-sdk-common-runtime@amazon.com --version ${{ steps.tag.outputs.release_tag }} --notes NOTES - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/ext/.gitignore b/ext/.gitignore index 32801ef..1f0fc8d 100644 --- a/ext/.gitignore +++ b/ext/.gitignore @@ -1,3 +1,3 @@ *.so api.h -awscrt.stub.php \ No newline at end of file +awscrt.stub.php