5
5
branches :
6
6
- " development"
7
7
pull_request :
8
- paths-ignore :
9
- - " Docs/**"
10
8
11
9
concurrency :
12
10
group : ${{ github.ref }}-${{ github.head_ref }}-intel
@@ -15,10 +13,29 @@ concurrency:
15
13
jobs :
16
14
# Ref.: https://github.com/rscohn2/oneapi-ci
17
15
# intel-basekit intel-hpckit are too large in size
16
+
17
+ skip_checks :
18
+ name : Skip checks?
19
+ runs-on : macos-latest
20
+ steps :
21
+ - name : Checkout code
22
+ uses : actions/checkout@v4
23
+ with :
24
+ fetch-depth : 0
25
+ - name : Run PR analysis script
26
+ run : |
27
+ .github/workflows/scripts/check_diff.sh \
28
+ ${{ github.event.pull_request.head.ref }} \
29
+ ${{ github.event.pull_request.base.ref }} \
30
+ ${{ github.event.pull_request.head.repo.clone_url }}
31
+ outputs :
32
+ skip : ${{ env.SKIP_CHECKS }}
33
+
18
34
build_icc :
19
35
name : oneAPI ICC SP&DP
20
36
runs-on : ubuntu-20.04
21
- if : github.event.pull_request.draft == false
37
+ needs : skip_checks
38
+ if : ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
22
39
# For oneAPI, Ninja is slower than the default:
23
40
# env:
24
41
# CMAKE_GENERATOR: Ninja
86
103
CXXFLAGS : " -Werror -Wno-error=pass-failed -Wno-tautological-constant-compare"
87
104
# For oneAPI, Ninja is slower than the default:
88
105
# CMAKE_GENERATOR: Ninja
89
- if : github.event.pull_request.draft == false
106
+ needs : skip_checks
107
+ if : ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
90
108
steps :
91
109
- uses : actions/checkout@v4
92
110
- name : install dependencies
@@ -151,7 +169,8 @@ jobs:
151
169
CXXFLAGS : " -Werror -Wno-tautological-constant-compare"
152
170
# For oneAPI, Ninja is slower than the default:
153
171
# CMAKE_GENERATOR: Ninja
154
- if : github.event.pull_request.draft == false
172
+ needs : skip_checks
173
+ if : ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
155
174
steps :
156
175
- uses : actions/checkout@v4
157
176
- name : install dependencies
0 commit comments