1 name: Git build on various OS and setups
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
9 #######################
12 # # Rebuild when changing the stable branch
18 simgrid-regular-debian11:
26 - name: Checkout repository
27 uses: actions/checkout@v2
31 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
32 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
33 -Denable_model-checking=OFF -Denable_smpi_MBI_testsuite=OFF \
34 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON \
36 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto"
38 ctest --output-on-verbose
39 - name: Create the failure Message
42 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
43 - name: Create the success Message
46 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
47 - uses: mattermost/action-mattermost-notify@master
49 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
50 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
52 simgrid-modelchecker-debian11:
60 - name: Checkout repository
61 uses: actions/checkout@v2
65 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
66 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
67 -Denable_model-checking=ON -Denable_smpi_MBI_testsuite=OFF \
68 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF \
70 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto"
72 ctest --output-on-verbose
73 - name: Create the failure Message
76 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
77 - name: Create the success Message
80 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
81 - uses: mattermost/action-mattermost-notify@master
83 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
84 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}