X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5d70f95ee9e74e70bbf4932bef39ae76fb592fbd..1f5cc4e090af49a98da0e25e9ee21a8ce6ce30f8:/.github/workflows/jarfile.yml diff --git a/.github/workflows/jarfile.yml b/.github/workflows/jarfile.yml index 76da9b8720..00433207d3 100644 --- a/.github/workflows/jarfile.yml +++ b/.github/workflows/jarfile.yml @@ -1,4 +1,4 @@ -name: SimGrid complete jar file generation +name: Jar build on: workflow_dispatch: @@ -56,7 +56,15 @@ jobs: with: name: jar-${{ matrix.config.os }} path: build/simgrid.jar - + - name: Create the failure Message + if: ${{ failure() }} + run: | + echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building JAR file on ${{ matrix.config.name }}! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + - uses: mattermost/action-mattermost-notify@master + if: ${{ failure() }} + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}} create_jar: needs: build runs-on: ubuntu-latest @@ -92,3 +100,15 @@ jobs: jar-ubuntu jar-windows jar-macos + - name: Create the failure Message + if: ${{ failure() }} + run: | + echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when assembling JAR file ! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + - name: Create the success Message + if: ${{ success() }} + run: | + echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"JAR file built successfully ! You can get it on: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + - uses: mattermost/action-mattermost-notify@master + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}