Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New github action for StarPU CI
[simgrid.git] / .github / workflows / ci-starpu.yml
diff --git a/.github/workflows/ci-starpu.yml b/.github/workflows/ci-starpu.yml
new file mode 100644 (file)
index 0000000..7b4fcb5
--- /dev/null
@@ -0,0 +1,34 @@
+name: CI StarPU
+
+on:
+  workflow_dispatch:
+  schedule:
+    - cron: '43 18 * * 0'
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    container: simgrid/unstable
+
+    steps:
+      - uses: actions/checkout@v2
+      - name: Build and test StarPU
+        run: |
+          set -e
+          ./tools/jenkins/ci-starpu.sh
+
+      - name: Create the failure Message
+        if: ${{ failure() }}
+        run: |
+          echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"StarPU 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\":\"StarPU 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() }}
+        env:
+          MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
+          MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
+