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
13 runs-on: ubuntu-latest
19 - name: Checkout repository
20 uses: actions/checkout@v2
24 apt install ninja 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 apt install ninja libboost-dev libboost-context-dev
60 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
61 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
62 -Denable_model-checking=ON -Denable_smpi_MBI_testsuite=OFF \
63 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF \
65 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto"
67 ctest --output-on-verbose
68 - name: Create the failure Message
71 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
72 - name: Create the success Message
75 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
76 - uses: mattermost/action-mattermost-notify@master
78 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
79 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}