55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
108
119concurrency :
1210 group : ${{ github.ref }}-${{ github.head_ref }}-intel
@@ -15,10 +13,29 @@ concurrency:
1513jobs :
1614# Ref.: https://github.com/rscohn2/oneapi-ci
1715# 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+
1834 build_icc :
1935 name : oneAPI ICC SP&DP
2036 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 }}
2239 # For oneAPI, Ninja is slower than the default:
2340 # env:
2441 # CMAKE_GENERATOR: Ninja
86103 CXXFLAGS : " -Werror -Wno-error=pass-failed -Wno-tautological-constant-compare"
87104 # For oneAPI, Ninja is slower than the default:
88105 # 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 }}
90108 steps :
91109 - uses : actions/checkout@v4
92110 - name : install dependencies
@@ -151,7 +169,8 @@ jobs:
151169 CXXFLAGS : " -Werror -Wno-tautological-constant-compare"
152170 # For oneAPI, Ninja is slower than the default:
153171 # 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 }}
155174 steps :
156175 - uses : actions/checkout@v4
157176 - name : install dependencies
0 commit comments