Skip to content

Commit

Permalink
build.yml: Add more PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abraxa committed Aug 25, 2024
1 parent 5c00ab6 commit 3ab5817
Showing 1 changed file with 82 additions and 2 deletions.
84 changes: 82 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }})
Expand Down Expand Up @@ -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 }})
Expand Down Expand Up @@ -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 }})
Expand Down Expand Up @@ -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
Expand All @@ -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({
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3ab5817

Please sign in to comment.