@@ -16,67 +16,26 @@ defaults:
1616
1717jobs :
1818 # Cancel other workflows that are dependent on this workflow by adding jobs that have the same concurrency group.
19- cancel_linux :
20- name : Cancel running Workflows
19+ cancel_running_workflows :
20+ name : Cancel ${{ matrix.workflow}}
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ workflow : ["linux", "macos", "misc", "coverage", "cmake", "documentation"]
2125 concurrency :
22- group : linux -${{ github.event.pull_request.number }}
26+ group : ${{ matrix.workflow }} -${{ github.event.pull_request.number }}
2327 cancel-in-progress : true
24- runs-on : ubuntu-22.04
28+ runs-on : ubuntu-latest
2529 steps :
26- - name : " Cancel Linux"
27- run : echo "Cancelling Linux"
28- cancel_macos :
29- name : Cancel running Workflows
30- concurrency :
31- group : macos-${{ github.event.pull_request.number }}
32- cancel-in-progress : true
33- runs-on : ubuntu-22.04
34- steps :
35- - name : " Cancel macOS"
36- run : echo "Cancelling macOS"
37- cancel_misc :
38- name : Cancel running Workflows
39- concurrency :
40- group : misc-${{ github.event.pull_request.number }}
41- cancel-in-progress : true
42- runs-on : ubuntu-22.04
43- steps :
44- - name : " Cancel Misc"
45- run : echo "Cancelling Misc"
46- cancel_coverage :
47- name : Cancel running Workflows
48- concurrency :
49- group : coverage-${{ github.event.pull_request.number }}
50- cancel-in-progress : true
51- runs-on : ubuntu-22.04
52- steps :
53- - name : " Cancel Coverage"
54- run : echo "Cancelling Coverage"
55- cancel_cmake :
56- name : Cancel running Workflows
57- concurrency :
58- group : cmake-${{ github.event.pull_request.number }}
59- cancel-in-progress : true
60- runs-on : ubuntu-22.04
61- steps :
62- - name : " Cancel CMake"
63- run : echo "Cancelling CMake"
64- cancel_documentation :
65- name : Cancel running Workflows
66- concurrency :
67- group : documentation-${{ github.event.pull_request.number }}
68- cancel-in-progress : true
69- runs-on : ubuntu-22.04
70- steps :
71- - name : " Cancel Documentation"
72- run : echo "Cancelling Documentation"
30+ - name : " Cancel ${{ matrix.workflow }}"
31+ run : echo "Cancelling ${{ matrix.workflow }}"
7332 lint :
7433 name : Lint
7534 concurrency :
7635 group : lint-${{ github.event.pull_request.number }}
7736 cancel-in-progress : true
78- needs : [cancel_linux, cancel_macos, cancel_misc, cancel_coverage, cancel_cmake, cancel_documentation]
79- runs-on : ubuntu-22.04
37+ needs : cancel_running_workflows
38+ runs-on : ubuntu-latest
8039 timeout-minutes : 15
8140 steps :
8241 - name : Run lint
0 commit comments