steps:
- name: Checkout repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Init options
run: |
echo "CC=${{ matrix.config.cc }}" >> $GITHUB_ENV
mkdir build ; cd build
cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
-Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
- -Denable_model-checking=OFF -Denable_smpi_MBI_testsuite=OFF \
- -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON \
+ -Denable_model-checking=OFF -Denable_testsuite_smpi_MBI=OFF \
+ -Denable_smpi=ON -Denable_testsuite_smpi_MPICH3=ON \
-DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto" ..
ninja tests
- ctest --output-on-failure
+ ctest --output-on-failure -j$(nproc)
- name: Create the failure Message
if: ${{ failure() }}
run: |
- name: Create the success Message
if: ${{ success() }}
run: |
- ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Simgrid built on successfully on ${{ matrix.config.name }}! successfully! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
- - uses: mattermost/action-mattermost-notify@master
+ 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
+ - uses: komarnitskyi/action-mattermost-notification@v0.1.2-beta
+ if: ${{ always() }}
env:
- MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
- MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
+ webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
+ channel: ${{ secrets.MATTERMOST_CHANNEL}}
+ json: mattermost.json
simgrid-modelcheck-ubuntu:
steps:
- name: Checkout repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: build
run: |
- sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev
- sudo apt-get install libunwind-dev libdw-dev libelf-dev libevent-dev
+ sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev libevent-dev
mkdir build ; cd build
cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
-Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
- -Denable_model-checking=ON -Denable_smpi_MBI_testsuite=OFF \
- -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF \
+ -Denable_model-checking=ON -Denable_testsuite_smpi_MBI=OFF \
+ -Denable_smpi=ON -Denable_testsuite_smpi_MPICH3=OFF \
-Denable_ns3=OFF \
-DCMAKE_DISABLE_SOURCE_CHANGES=ON -DLTO_EXTRA_FLAG="auto" ..
ninja tests
- ctest --output-on-failure
+ ctest --output-on-failure -j$(nproc)
- name: Create the failure Message
if: ${{ failure() }}
run: |
if: ${{ success() }}
run: |
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
- - uses: mattermost/action-mattermost-notify@master
+ - uses: komarnitskyi/action-mattermost-notification@v0.1.2-beta
+ if: ${{ always() }}
env:
- MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
- MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
-
+ webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
+ channel: ${{ secrets.MATTERMOST_CHANNEL}}
+ json: mattermost.json