From: Soeren Apel Date: Sun, 25 Aug 2024 23:13:42 +0000 (+0200) Subject: build.yml: Add more PR comments X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3ab581715cebce9abcc53cc65c7e517ee1dc396f;p=sigrok-build.git build.yml: Add more PR comments --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2e32fd..dd340f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -131,6 +131,22 @@ jobs: name: artifact-pulseview-${{ matrix.target.target }}-${{ matrix.build_type.name }}-mxe path: pulseview/build/contrib/pulseview*installer.exe + - name: Add artifact message to pull request + # Only relevant for pull requests + if: (github.event_name == 'pull_request') + uses: actions/github-script@v7 + env: + PR_NOTES: | + pulseview-${{ env.ARTIFACT_VERSION }}-${{ matrix.target.target }}-${{ matrix.build_type.name }}-installer.exe created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }} + with: + script: | + github.rest.issues.createComment({ + issue_number: ${{ github.event.pull_request.number }}, + owner: context.repo.owner, + repo: context.repo.repo, + body: process.env.PR_NOTES + }) + build_sigrok-cli_mxe: name: sigrok-cli MXE build (${{ matrix.target.target }}) @@ -223,6 +239,22 @@ jobs: name: artifact-sigrok-cli-${{ matrix.target.target }}-mxe path: sigrok-cli/contrib/sigrok-cli*installer.exe + - name: Add artifact message to pull request + # Only relevant for pull requests + if: (github.event_name == 'pull_request') + uses: actions/github-script@v7 + env: + PR_NOTES: | + sigrok-cli-${{ env.ARTIFACT_VERSION }}-${{ matrix.target.target }}-debug-installer.exe created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }} + with: + script: | + github.rest.issues.createComment({ + issue_number: ${{ github.event.pull_request.number }}, + owner: context.repo.owner, + repo: context.repo.repo, + body: process.env.PR_NOTES + }) + build_pulseview_appimage: name: PulseView AppImage build (${{ matrix.target.target }}) (${{ matrix.build_type.type }}) @@ -341,6 +373,22 @@ jobs: name: artifact-pulseview-${{ matrix.target.target }}-${{ matrix.build_type.name }}-appimage path: sigrok-build/ci/appimage/appimage-build/pulseview-*.appimage + - name: Add artifact message to pull request + # Only relevant for pull requests + if: (github.event_name == 'pull_request') + uses: actions/github-script@v7 + env: + PR_NOTES: | + pulseview-${{ matrix.target.target }}-${{ matrix.build_type.name }}-appimage created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }} + with: + script: | + github.rest.issues.createComment({ + issue_number: ${{ github.event.pull_request.number }}, + owner: context.repo.owner, + repo: context.repo.repo, + body: process.env.PR_NOTES + }) + build_sigrok-cli_appimage: name: sigrok-cli AppImage build (${{ matrix.target.target }}) @@ -451,7 +499,7 @@ jobs: id: upload_sigrok-cli_appimage_artifact uses: actions/upload-artifact@v4 with: - name: artifact-sigrok-cli-x86_64-appimage + name: artifact-sigrok-cli-${{ matrix.target.target }}-appimage path: sigrok-build/ci/appimage/appimage-build/sigrok-cli-*.appimage - name: Output artifact URL to log @@ -466,7 +514,7 @@ jobs: uses: actions/github-script@v7 env: PR_NOTES: | - sigrok-cli ${{ matrix.target.target }} AppImage created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }} + sigrok-cli-${{ env.ARTIFACT_VERSION }}-${{ matrix.target.target }}-debug.appimage created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }} with: script: | github.rest.issues.createComment({ @@ -573,6 +621,22 @@ jobs: name: artifact-pulseview-macos path: sigrok-build/ci/macos/pulseview*.dmg + - name: Add artifact message to pull request + # Only relevant for pull requests + if: (github.event_name == 'pull_request') + uses: actions/github-script@v7 + env: + PR_NOTES: | + pulseview-${{ env.ARTIFACT_VERSION }}-${{ env.TARGET }}.dmg created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }} + with: + script: | + github.rest.issues.createComment({ + issue_number: ${{ github.event.pull_request.number }}, + owner: context.repo.owner, + repo: context.repo.repo, + body: process.env.PR_NOTES + }) + build_sigrok-cli_macos: name: sigrok-cli macOS build @@ -654,6 +718,22 @@ jobs: name: artifact-sigrok-cli-macos path: sigrok-build/ci/macos/sigrok-cli*.dmg + - name: Add artifact message to pull request + # Only relevant for pull requests + if: (github.event_name == 'pull_request') + uses: actions/github-script@v7 + env: + PR_NOTES: | + sigrok-cli-${{ env.ARTIFACT_VERSION }}-${{ env.TARGET }}.dmg created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }} + with: + script: | + github.rest.issues.createComment({ + issue_number: ${{ github.event.pull_request.number }}, + owner: context.repo.owner, + repo: context.repo.repo, + body: process.env.PR_NOTES + }) + continuous_release_pulseview: name: Create continuous PulseView release and add artifacts to it