Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make test pass. The finalization barrier is needed in this case, which is suboptimal.
[simgrid.git] / .github / workflows / ci-wrench.yml
index c8358ab..224b03e 100644 (file)
@@ -3,7 +3,7 @@ name: CI Wrench
 on:
   workflow_dispatch:
   schedule:
-    - cron: '43 18 * * 0'
+    - cron: '0 20 * * 0'
 
 jobs:
   build:
@@ -13,36 +13,21 @@ jobs:
 
     steps:
       - uses: actions/checkout@v2
-      - name: Install APT dependencies
-        run: |
-          apt update
-          apt -y install cmake
-          apt -y install gcc
-          apt -y install g++
-          apt -y install unzip
-          apt -y install doxygen
-          apt -y install wget
-          apt -y install git
-          apt -y install libboost-all-dev
-          apt -y install libpugixml-dev
-          apt -y install nlohmann-json3-dev
-          apt -y install googletest
       - name: Build and test WRENCH
         run: |
           set -e
-          rm -rf wrench.git && git clone --depth 1 --branch simgrid-external-project-ci https://github.com/wrench-project/wrench.git wrench.git
-          mkdir wrench.git/build && cd wrench.git/build && cmake -DSIMGRID_INSTALL_PATH=/usr/ .. && make unit_tests && ./unit_tests
+          ./tools/jenkins/ci-wrench.sh
 
       - name: Create the failure Message
         if: ${{ failure() }}
         run: |
-          echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Wrench's git 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\":\"@henricasanova: Wrench's git 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\":\"Wrench's git 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}}