Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[ci-skip] [no-ci] bigdft ci: temporary fix for nvidia key change
[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           #temporary fix for https://github.com/NVIDIA/nvidia-docker/issues/1631
22           apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
23           ./tools/jenkins/ci-bigdft.sh
24
25       - name: Create the failure Message
26         if: ${{ failure() }}
27         run: |
28           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
29       - name: Create the success Message
30         if: ${{ success() }}
31         run: |
32           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
33       - uses: mattermost/action-mattermost-notify@master
34         if: ${{ always() }}
35         env:
36           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
37           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
38