Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove ns3 from ubuntu stable and github actions, as 3.35 is broken on 22.04
[simgrid.git] / .github / workflows / git.yml
1 name: Git builds
2
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
6 # documentation.
7
8 # Only trigger manually
9 on: workflow_dispatch
10
11 jobs:
12   simgrid-regular-ubuntu:
13     runs-on: ubuntu-latest
14     permissions:
15       contents: read
16       packages: write
17
18     steps:
19       - name: Checkout repository
20         uses: actions/checkout@v2
21
22       - name: build
23         run: |
24           sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev
25           mkdir build ; cd build
26           cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
27                 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
28                 -Denable_model-checking=OFF -Denable_smpi_MBI_testsuite=OFF \
29                 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON \
30                 -DCMAKE_DISABLE_SOURCE_CHANGES=ON  -DLTO_EXTRA_FLAG="auto" ..
31           ninja tests
32           ctest --output-on-failure
33       - name: Create the failure Message
34         if: ${{ failure() }}
35         run: |
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
38         if: ${{ success() }}
39         run: |
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
42         env:
43           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
44           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
45
46   simgrid-modelcheck-ubuntu:
47
48     runs-on: ubuntu-latest
49     permissions:
50       contents: read
51       packages: write
52
53     steps:
54       - name: Checkout repository
55         uses: actions/checkout@v2
56
57       - name: build
58         run: |
59           sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-context-dev pybind11-dev
60           sudo apt-get install libunwind-dev libdw-dev libelf-dev libevent-dev
61           mkdir build ; cd build
62           cmake -GNinja -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
63                 -Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
64                 -Denable_model-checking=ON -Denable_smpi_MBI_testsuite=OFF \
65                 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF \
66                 -Denable_ns3=OFF \
67                 -DCMAKE_DISABLE_SOURCE_CHANGES=ON  -DLTO_EXTRA_FLAG="auto" ..
68           ninja tests
69           ctest --output-on-failure
70       - name: Create the failure Message
71         if: ${{ failure() }}
72         run: |
73           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
74       - name: Create the success Message
75         if: ${{ success() }}
76         run: |
77           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
78       - uses: mattermost/action-mattermost-notify@master
79         env:
80           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
81           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
82