3 # This workflow uses actions that are not certified by GitHub.
4 # They are provided by a third-party and are governed by
5 # separate terms of service, privacy policy, and support
8 # Only trigger manually
12 simgrid-regular-ubuntu:
13 runs-on: ubuntu-latest
19 - name: Checkout repository
20 uses: actions/checkout@v2
24 sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev
25 mkdir build ; cd build
26 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
27 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
28 -Denable_model-checking=OFF -Denable_smpi_MBI_testsuite=OFF \
29 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON \
30 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto" ..
32 ctest --output-on-failure
33 - name: Create the failure Message
36 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building STABLE docker image v3.$ver! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
37 - name: Create the success Message
40 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker STABLE image v3.$ver built and pushed successfully! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
41 - uses: mattermost/action-mattermost-notify@master
43 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
44 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
46 simgrid-modelcheck-ubuntu:
48 runs-on: ubuntu-latest
54 - name: Checkout repository
55 uses: actions/checkout@v2
59 sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev
60 sudo apt-get install libunwind-dev libdw-dev libelf-dev libevent-dev
61 mkdir build ; cd build
62 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
63 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
64 -Denable_model-checking=ON -Denable_smpi_MBI_testsuite=OFF \
65 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF \
67 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto" ..
69 ctest --output-on-failure
70 - name: Create the failure Message
73 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building STABLE docker image v3.$ver! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
74 - name: Create the success Message
77 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker STABLE image v3.$ver built and pushed successfully! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
78 - uses: mattermost/action-mattermost-notify@master
80 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
81 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}