Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
GH CI actions: schedule 1h17 after the docker action, highlight someone in case of...
[simgrid.git] / .github / workflows / ci-starpu.yml
1 name: CI StarPU
2
3 on:
4   workflow_dispatch:
5   schedule:
6     - cron: '0 20 * * 0'
7
8 jobs:
9   build:
10
11     runs-on: ubuntu-latest
12     container: simgrid/unstable
13
14     steps:
15       - uses: actions/checkout@v2
16       - name: Build and test StarPU
17         run: |
18           set -e
19           ./tools/jenkins/ci-starpu.sh
20
21       - name: Create the failure Message
22         if: ${{ failure() }}
23         run: |
24           echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"@sthibaul: StarPU failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
25       - name: Create the success Message
26         if: ${{ success() }}
27         run: |
28           echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"StarPU successfully built on simgrid/unstable docker image. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
29       - uses: mattermost/action-mattermost-notify@master
30         if: ${{ always() }}
31         env:
32           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
33           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
34