From 72fdc35fbe4da63d19f74cf3147505bf1bb23f4c Mon Sep 17 00:00:00 2001 From: Asen Alexandrov Date: Fri, 7 Apr 2023 09:19:34 +0300 Subject: [PATCH] chore: Add GH action to release php8 for wasmedge --- .github/workflows/release-php.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-php.yaml b/.github/workflows/release-php.yaml index eea5434..8cf51c0 100644 --- a/.github/workflows/release-php.yaml +++ b/.github/workflows/release-php.yaml @@ -29,6 +29,11 @@ jobs: flavor: "" build-php-cli: false version: 8.2.0 + - name: wasmedge-php- + suffix: "-wasmedge" + flavor: "" + build-php-cli: false + version: 8.2.0 - name: php- suffix: "" flavor: -slim @@ -58,7 +63,7 @@ jobs: if: startsWith(github.event.ref, format('refs/tags/php/{0}+', matrix.version)) shell: bash run: | - sudo mv build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}/bin/php-cgi{${{ matrix.suffix }},-${{ matrix.version }}${{ matrix.suffix }}${{ matrix.flavor }}}.wasm + sudo mv build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}${{ matrix.suffix }}/bin/php-cgi{${{ matrix.suffix }},-${{ matrix.version }}${{ matrix.suffix }}${{ matrix.flavor }}}.wasm - name: Rename release artifacts # Only run for the PHP version specified in the git tag. # @@ -67,7 +72,7 @@ jobs: if: ${{ startsWith(github.event.ref, format('refs/tags/php/{0}+', matrix.version)) && matrix.build-php-cli }} shell: bash run: | - sudo mv build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}/bin/php{${{ matrix.suffix }},-${{ matrix.version }}${{ matrix.suffix }}${{ matrix.flavor }}}.wasm + sudo mv build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}${{ matrix.suffix }}/bin/php{${{ matrix.suffix }},-${{ matrix.version }}${{ matrix.suffix }}${{ matrix.flavor }}}.wasm - name: Create release # Only run for the PHP version specified in the git tag. # @@ -88,7 +93,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release upload ${{ github.ref_name }} \ - build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}/bin/*.wasm + build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}${{ matrix.suffix }}/bin/*.wasm - name: Generate release assets digests # Only run for the PHP version specified in the git tag. # @@ -98,7 +103,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - for asset in build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}/bin/*.wasm; do + for asset in build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}${{ matrix.suffix }}/bin/*.wasm; do sha256sum "$asset" | sudo tee "$asset.sha256sum" > /dev/null done - name: Append release assets digests @@ -111,4 +116,4 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release upload ${{ github.ref_name }} \ - build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}/bin/*.sha256sum + build-output/php/php-${{ matrix.version }}${{ matrix.flavor }}${{ matrix.suffix }}/bin/*.sha256sum