mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
make a github action to test pecl before release
This commit is contained in:
@@ -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 [email protected] --version 1.0.0 --notes NOTES
|
||||
ls *.tgz
|
||||
tar zxvf *.tgz
|
||||
ls
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: tag
|
||||
|
||||
- name: Prepare Package Script
|
||||
run: dev-scripts/prepare-release.sh --name aws-crt --user aws-crt --email [email protected] --version ${{ steps.tag.outputs.release_tag }} --notes NOTES
|
||||
run: dev-scripts/prepare_release.sh --name aws-crt --user aws-crt --email [email protected] --version ${{ steps.tag.outputs.release_tag }} --notes NOTES
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
*.so
|
||||
api.h
|
||||
awscrt.stub.php
|
||||
awscrt.stub.php
|
||||
|
||||
Reference in New Issue
Block a user