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
index 76a8bc6..581e733 100644 (file)
@@ -3,31 +3,35 @@ name: CI BigDFT
 on:
   workflow_dispatch:
   schedule:
-    - cron: '43 18 * * 0'
+    - cron: '0 20 * * 0'
 
 jobs:
   build:
 
     runs-on: ubuntu-latest
-    container: simgrid/unstable
+    container:
+      image: bigdft/sdk
+      options: --user 0
 
     steps:
       - uses: actions/checkout@v2
       - name: Build and test BigDFT
         run: |
           set -e
+          #temporary fix for https://github.com/NVIDIA/nvidia-docker/issues/1631
+          apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
           ./tools/jenkins/ci-bigdft.sh
 
       - name: Create the failure Message
         if: ${{ failure() }}
         run: |
-          echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"BigDFT failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
+          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
       - name: Create the success Message
         if: ${{ success() }}
         run: |
           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
       - uses: mattermost/action-mattermost-notify@master
-        if: ${{ failure() }}
+        if: ${{ always() }}
         env:
           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}