File tree Expand file tree Collapse file tree 4 files changed +27
-10
lines changed Expand file tree Collapse file tree 4 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -50,18 +50,33 @@ jobs:
50
50
echo "${MATRIX_BLOB}"
51
51
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
52
52
53
- trigger-linux -test :
53
+ fail-fast -test :
54
54
needs : [filter-matrix]
55
55
if : always()
56
+ permissions :
57
+ id-token : write
58
+ contents : read
59
+ packages : write
60
+ runs-on : ubuntu-latest
61
+ steps :
62
+ - name : Fail fast test
63
+ run : |
64
+ echo "Fail fast test"
65
+
66
+ trigger-linux-test :
67
+ needs : [fail-fast-test]
68
+ if : always()
69
+ name : build-test on linux-x86_64
56
70
permissions :
57
71
id-token : write
58
72
contents : read
59
73
packages : write
60
74
uses : ./.github/workflows/build-test-linux-x86_64.yml
61
75
62
76
trigger-windows-test :
63
- needs : [filter-matrix ]
77
+ needs : [fail-fast-test ]
64
78
if : always()
79
+ name : build-test on windows
65
80
permissions :
66
81
id-token : write
67
82
contents : read
Original file line number Diff line number Diff line change @@ -12,19 +12,21 @@ jobs:
12
12
echo "Pre-test"
13
13
echo "${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
14
14
15
- call-b :
15
+ call-linux-x86_64 :
16
+ needs : pre-test
16
17
uses : ./.github/workflows/test_b.yml
17
18
18
- call-c :
19
+ call-windows :
20
+ needs : pre-test
19
21
uses : ./.github/workflows/test_c.yml
20
22
21
23
wait-all-jobs :
22
- needs : [call-b , call-c ]
24
+ needs : [call-linux-x86_64 , call-windows ]
23
25
runs-on : ubuntu-latest
24
26
steps :
25
27
- name : Wait for all jobs to complete
26
28
run : |
27
- echo "Waiting for all jobs to complete..."
29
+ echo "Waiting for all jobs to complete... ${{ github.workflow }} "
28
30
29
31
concurrency :
30
32
group : ${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
6
6
jobs :
7
- test-b :
7
+ test :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Test b
11
11
run : |
12
- echo "Test b"
12
+ echo "Test b ${github.workflow} "
13
13
14
14
concurrency :
15
15
group : ${{ github.workflow }}-b-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
6
6
jobs :
7
- test-b :
7
+ test :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Test c
11
11
run : |
12
- echo "Test c"
12
+ echo "Test c ${github.workflow} "
13
13
14
14
concurrency :
15
15
group : ${{ github.workflow }}-c-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
You can’t perform that action at this time.
0 commit comments