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 libns3-dev
25 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
26 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
27 -Denable_model-checking=OFF -Denable_smpi_MBI_testsuite=OFF \
28 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON \
30 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto"
32 ctest --output-on-verbose
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
60 sudo apt-get install libunwind-dev libdw-dev libelf-dev libevent-dev
61 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
62 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
63 -Denable_model-checking=ON -Denable_smpi_MBI_testsuite=OFF \
64 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF \
66 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto"
68 ctest --output-on-verbose
69 - name: Create the failure Message
72 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
73 - name: Create the success Message
76 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
77 - uses: mattermost/action-mattermost-notify@master
79 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
80 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}