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: ${{ matrix.config.os }}-latest
17 - { name: "Ubuntu gcc", os: ubuntu, cc: "gcc", cxx: "g++", generator: "Unix Makefiles", cmake_extra_options: "-DLTO_EXTRA_FLAG=auto" }
18 - { name: "MacOS clang", os: macos, cc: "clang", cxx: "clang++", generator: "Unix Makefiles", cmake_extra_options: "-DLTO_EXTRA_FLAG=auto" }
24 - name: Checkout repository
25 uses: actions/checkout@v2
28 echo "CC=${{ matrix.config.cc }}" >> $GITHUB_ENV
29 echo "CXX=${{ matrix.config.cxx }}" >> GITHUB_ENV
30 - name: prepare for ubuntu
31 if: matrix.config.os == 'ubuntu'
33 sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev
34 - name: prepare for macos
35 if: matrix.config.os == 'macos'
36 run: brew install boost eigen pybind11 ninja
39 mkdir build ; cd build
40 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
41 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
42 -Denable_model-checking=OFF -Denable_smpi_MBI_testsuite=OFF \
43 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON \
44 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto" ..
46 ctest --output-on-failure -j$(nproc)
47 - name: Create the failure Message
50 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building simgrid on ${{ matrix.config.name }}! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
51 - name: Create the success Message
54 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Simgrid built successfully on ${{ matrix.config.name }}! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
55 - uses: komarnitskyi/action-mattermost-notification@v0.1.2-beta
58 webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
59 channel: ${{ secrets.MATTERMOST_CHANNEL}}
62 simgrid-modelcheck-ubuntu:
64 runs-on: ubuntu-latest
70 - name: Checkout repository
71 uses: actions/checkout@v2
75 sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev
76 sudo apt-get install libunwind-dev libdw-dev libelf-dev libevent-dev
77 mkdir build ; cd build
78 cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
79 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
80 -Denable_model-checking=ON -Denable_smpi_MBI_testsuite=OFF \
81 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF \
83 -DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto" ..
85 ctest --output-on-failure -j$(nproc)
86 - name: Create the failure Message
89 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building simgrid Modelchecker on ubuntu-stable! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
90 - name: Create the success Message
93 ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Simgrid Modelchecker built successfully on ubuntu-stable! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
94 - uses: komarnitskyi/action-mattermost-notification@v0.1.2-beta
97 webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
98 channel: ${{ secrets.MATTERMOST_CHANNEL}}