@@ -93,42 +93,24 @@ jobs:
93
93
fail-fast : false
94
94
matrix :
95
95
build_type : [sp, dbg, opt]
96
- # Run this workflow if:
97
- # - workflow_dispatch: user requested this job.
98
- # - schedule: always:
99
- # - pull_request: matching skip label is NOT found
100
- if : |
101
- ${{
102
- github.event_name == 'schedule' ||
103
- ( github.event_name == 'workflow_dispatch' && github.event.inputs.jobs_list == 'gcc-cuda' ) ||
104
- (
105
- github.event_name == 'pull_request' &&
106
- !(
107
- contains(github.event.pull_request.labels.*.name, 'AT: skip gcc') ||
108
- contains(github.event.pull_request.labels.*.name, 'AT: skip cuda') ||
109
- contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-sa') ||
110
- contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-all')
111
- )
112
- )
113
- }}
96
+ if : ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.jobs_list != 'gcc-cuda') }}
114
97
name : gcc-cuda / ${{ matrix.build_type }}
115
98
steps :
116
- - name : Show action trigger
117
- uses : actions/github-script@v7
118
- with :
119
- script : |
120
- const eventName = context.eventName;
121
- const eventAction = context.payload.action || 'N/A';
122
- const actor = context.actor;
123
- console.log(`The job was triggered by a ${eventName} event.`);
124
- console.log(` - Event action: ${eventAction}`);
125
- console.log(` - Triggered by: ${actor}`);
126
99
- name : Check out the repository
127
100
uses : actions/checkout@v4
128
101
with :
129
102
persist-credentials : false
130
103
show-progress : false
131
104
submodules : recursive
105
+ - name : Show action trigger
106
+ uses : ./.github/actions/show-workflow-trigger
107
+ - name : Check for skip labels
108
+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_review' }}
109
+ uses : ./.github/actions/check-skip-labels
110
+ with :
111
+ skip_labels : ' AT: skip gcc,AT: skip cuda,AT: skip eamxx-sa,AT: skip eamxx-all'
112
+ token : ${{ secrets.GITHUB_TOKEN }}
113
+ pr_number : ${{ github.event.pull_request.number }}
132
114
- name : Set test-all inputs based on event specs
133
115
run : |
134
116
echo "submit=false" >> $GITHUB_ENV
0 commit comments