Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
333faec0bfaf4b324c074aa3b3a68e675c2410fd
[simgrid.git] / .github / workflows / git.yml
1 name: Git build on various OS and setups
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 #######################
10 # on:
11 #   workflow_dispatch:
12 #   # Rebuild when changing the stable branch
13 #   push:
14 #       branches:
15 #             - master
16
17 jobs:
18   simgrid-regular-debian11:
19
20     runs-on: debian:11
21     permissions:
22       contents: read
23       packages: write
24
25     steps:
26       - name: Checkout repository
27         uses: actions/checkout@v2
28
29       - name: build
30         run: |
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 \
35                 -Denable_ns3=ON \
36                 -DCMAKE_DISABLE_SOURCE_CHANGES=ON  -DLTO_EXTRA_FLAG="auto"
37           ninja tests VERBOSE=1
38           ctest --output-on-verbose
39       - name: Create the failure Message
40         if: ${{ failure() }}
41         run: |
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
44         if: ${{ success() }}
45         run: |
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
48         env:
49           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
50           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
51
52   simgrid-modelchecker-debian11:
53
54     runs-on: debian:11
55     permissions:
56       contents: read
57       packages: write
58
59     steps:
60       - name: Checkout repository
61         uses: actions/checkout@v2
62
63       - name: build
64         run: |
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 \
69                 -Denable_ns3=OFF \
70                 -DCMAKE_DISABLE_SOURCE_CHANGES=ON  -DLTO_EXTRA_FLAG="auto"
71           ninja tests VERBOSE=1
72           ctest --output-on-verbose
73       - name: Create the failure Message
74         if: ${{ failure() }}
75         run: |
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
78         if: ${{ success() }}
79         run: |
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
82         env:
83           MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
84           MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
85