16
16
checks :
17
17
timeout-minutes : 7200
18
18
runs-on : [self-hosted, v1]
19
+ # continue-on-error: true
19
20
20
21
outputs :
21
22
fail : ${{ steps.assert.outputs.fail }}
@@ -29,28 +30,20 @@ jobs:
29
30
source ci/build.sh
30
31
apply_prerun
31
32
32
- - name : Halt execution
33
+ - name : Cancel steps
33
34
if : ${{ failure() }}
34
35
run : >
35
36
echo "::error ::ci: Cannot proceed at this condition, the workflow will be cancelled."
36
- until curl -L \
37
- -X POST \
38
- -H "Accept: application/vnd.github+json" \
39
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
40
- -H "X-GitHub-Api-Version: 2022-11-28" \
41
- "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" ; do
42
- sleep 5
43
- done
44
- while true ; do sleep 10 ; done
37
+ "FATAL=true" >> "$GITHUB_ENV"
45
38
46
39
- name : License
47
- if : ${{ !cancelled() }}
40
+ if : ${{ !cancelled() && env.FATAL != 'true' }}
48
41
run : |
49
42
source ci/build.sh
50
43
check_license
51
44
52
45
- name : Check patch
53
- if : ${{ !cancelled() }}
46
+ if : ${{ !cancelled() && env.FATAL != 'true' }}
54
47
run : |
55
48
source ci/build.sh
56
49
export -f check_checkpatch set_step_fail set_step_warn
59
52
exit $status
60
53
61
54
- name : Coccicheck
62
- if : ${{ !cancelled() }}
55
+ if : ${{ !cancelled() && env.FATAL != 'true' }}
63
56
run : |
64
57
source ci/build.sh
65
58
export -f check_coccicheck set_step_fail set_step_warn
@@ -68,13 +61,13 @@ jobs:
68
61
exit $status
69
62
70
63
- name : CPP Check
71
- if : ${{ !cancelled() }}
64
+ if : ${{ !cancelled() && env.FATAL != 'true' }}
72
65
run : |
73
66
source ci/build.sh
74
67
check_cppcheck
75
68
76
69
- name : Checkout and patch reference branch
77
- if : ${{ !cancelled() && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
70
+ if : ${{ !cancelled() && env.FATAL != 'true' && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
78
71
run : |
79
72
git fetch origin --depth=1 "${{ inputs.ref_branch }}" &&
80
73
git reset --hard origin/${{ inputs.ref_branch }} ||
@@ -110,13 +103,13 @@ jobs:
110
103
done <<< "$files"
111
104
112
105
- name : Check dt-bindings
113
- if : ${{ !cancelled() }}
106
+ if : ${{ !cancelled() && env.FATAL != 'true' }}
114
107
run : |
115
108
source ci/build.sh
116
109
check_dt_binding_check
117
110
118
111
- name : Revert patch reference branch
119
- if : ${{ !cancelled() && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
112
+ if : ${{ !cancelled() && env.FATAL != 'true' && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
120
113
run : |
121
114
git reset --hard $head_sha
122
115
@@ -126,4 +119,5 @@ jobs:
126
119
run : |
127
120
echo "warn=$(printenv | grep ^step_warn_ | grep -v =$ | tr '\n' ',' | sed 's/,$//')" >> "$GITHUB_OUTPUT"
128
121
echo "fail=$(printenv | grep ^step_fail_ | grep -v =$ | tr '\n' ',' | sed 's/,$//')" >> "$GITHUB_OUTPUT"
122
+ # [ "$FATAL" == 'true' ] && exit 1
129
123
0 commit comments