From ef3ba9d1a99ce6b7f1788806c626d7d0cb5bfeb1 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Sat, 4 Mar 2023 13:10:51 +0100 Subject: [PATCH] [ci-skpi] fix sending of messages, and do parallel testing on github action --- .github/workflows/git.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/git.yml b/.github/workflows/git.yml index 09ef13cef6..30582d4c3d 100644 --- a/.github/workflows/git.yml +++ b/.github/workflows/git.yml @@ -43,7 +43,7 @@ jobs: -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=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: | @@ -53,6 +53,7 @@ jobs: run: | 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: mattermost/action-mattermost-notify@master + if: ${{ always() }} env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}} @@ -80,7 +81,7 @@ jobs: -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: | @@ -90,6 +91,7 @@ jobs: 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 + if: ${{ always() }} env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}} -- 2.20.1