Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
switch to bigdft sdk container for building bigdft, it already has most packages...
[simgrid.git] / .github / workflows / ci-bigdft.yml
1 name: CI BigDFT
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: 
13       image: bigdft/sdk
14       options: --user 0
15
16     steps:
17       - uses: actions/checkout@v2
18       - name: Build and test BigDFT
19         run: |
20           set -e
21           ./tools/jenkins/ci-bigdft.sh
22
23       - name: Create the failure Message
24         if: ${{ failure() }}
25         run: |
26           echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"@adegomme: BigDFT failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
27       - name: Create the success Message
28         if: ${{ success() }}
29         run: |
30           echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"BigDFT successfully built on simgrid/unstable docker image. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
31       - uses: mattermost/action-mattermost-notify@master
32         if: ${{ always() }}
33         env:
34           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
35           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
36