File tree Expand file tree Collapse file tree 11 files changed +114
-52
lines changed Expand file tree Collapse file tree 11 files changed +114
-52
lines changed Original file line number Diff line number Diff line change 1+ name : Check Changes
2+
3+ on :
4+ workflow_call :
5+ outputs :
6+ has_docs_changes :
7+ value : ${{ jobs.check.outputs.has_docs_changes }}
8+ has_non_docs_changes :
9+ value : ${{ jobs.check.outputs.has_non_docs_changes }}
10+
11+ jobs :
12+ check :
13+ runs-on : ubuntu-latest
14+ outputs :
15+ has_non_docs_changes : ${{ steps.set-output.outputs.has_non_docs_changes }}
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : dorny/paths-filter@v3
19+ id : changes
20+ with :
21+ filters : |
22+ docs:
23+ - 'Docs/**'
24+ - '**.rst'
25+ others:
26+ - '!Docs/**'
27+ - '!**.rst'
28+ - id : set-output
29+ run : |
30+ echo "has_docs_changes=${{ steps.changes.outputs.docs }}" >> $GITHUB_OUTPUT
31+ echo "has_non_docs_changes=${{ steps.changes.outputs.others }}" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-clangsanitizers
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 build_UB_sanitizer :
1819 name : Clang UB sanitizer
1920 runs-on : ubuntu-24.04
20- if : github.event.pull_request.draft == false
21+ needs : check_changes
22+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2123 env :
2224 CC : clang
2325 CXX : clang++
7981 build_thread_sanitizer :
8082 name : Clang thread sanitizer
8183 runs-on : ubuntu-24.04
82- if : github.event.pull_request.draft == false
84+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
8385 env :
8486 CC : clang
8587 CXX : clang++
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-clangtidy
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 run_clang_tidy :
1819 strategy :
1920 matrix :
2021 dim : [1, 2, RZ, 3]
2122 name : clang-tidy-${{ matrix.dim }}D
2223 runs-on : ubuntu-24.04
2324 timeout-minutes : 250
24- if : github.event.pull_request.draft == false
25+ needs : check_changes
26+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2527 steps :
2628 - uses : actions/checkout@v4
2729 - name : install dependencies
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-cuda
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 build_nvcc :
1819 name : NVCC SP
1920 runs-on : ubuntu-22.04
20- if : github.event.pull_request.draft == false
21+ needs : check_changes
22+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2123 env :
2224 CXXFLAGS : " -Werror"
2325 CMAKE_GENERATOR : Ninja
98100 build_nvcc_gnumake :
99101 name : NVCC GNU Make
100102 runs-on : ubuntu-22.04
101- if : github.event.pull_request.draft == false
103+ needs : check_changes
104+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
102105 steps :
103106 - uses : actions/checkout@v4
104107 - name : install dependencies
@@ -132,7 +135,8 @@ jobs:
132135 build_nvhpc :
133136 name : NVHPC
134137 runs-on : ubuntu-24.04
135- if : github.event.pull_request.draft == false
138+ needs : check_changes
139+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
136140 # env:
137141 # # For NVHPC, Ninja is slower than the default:
138142 # CMAKE_GENERATOR: Ninja
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-hip
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 build_hip_3d_sp :
1819 name : HIP 3D SP
1920 runs-on : ubuntu-24.04
2021 env :
2122 CXXFLAGS : " -Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
2223 CMAKE_GENERATOR : Ninja
23- if : github.event.pull_request.draft == false
24+ needs : check_changes
25+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2426 steps :
2527 - uses : actions/checkout@v4
2628 - name : install dependencies
7476 env :
7577 CXXFLAGS : " -Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
7678 CMAKE_GENERATOR : Ninja
77- if : github.event.pull_request.draft == false
79+ needs : check_changes
80+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
7881 steps :
7982 - uses : actions/checkout@v4
8083 - name : install dependencies
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-insituvis
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 sensei :
1819 name : SENSEI
1920 runs-on : ubuntu-24.04
20- if : github.event.pull_request.draft == false
21+ needs : check_changes
22+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2123 env :
2224 CXX : clang++
2325 CC : clang
4345 ascent :
4446 name : Ascent
4547 runs-on : ubuntu-24.04
46- if : github.event.pull_request.draft == false
48+ needs : check_changes
49+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
4750 env :
4851 CXX : g++
4952 CC : gcc
8386 catalyst :
8487 name : Catalyst
8588 runs-on : ubuntu-24.04
86- if : github.event.pull_request.draft == false
89+ needs : check_changes
90+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
8791 env :
8892 CXX : g++
8993 CC : gcc
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-intel
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 build_icpx :
1819 name : oneAPI ICX SP
1920 runs-on : ubuntu-24.04
2425 CXXFLAGS : " -Werror -Wno-error=pass-failed -Wno-tautological-constant-compare"
2526 # For oneAPI, Ninja is slower than the default:
2627 # CMAKE_GENERATOR: Ninja
27- if : github.event.pull_request.draft == false
28+ needs : check_changes
29+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2830 steps :
2931 - uses : actions/checkout@v4
3032 - name : install dependencies
8991 CXXFLAGS : " -Werror -Wno-tautological-constant-compare"
9092 # For oneAPI, Ninja is slower than the default:
9193 # CMAKE_GENERATOR: Ninja
92- if : github.event.pull_request.draft == false
94+ needs : check_changes
95+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
9396 steps :
9497 - uses : actions/checkout@v4
9598 - name : install dependencies
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-jupyter
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 jupyter_notebooks :
1819 name : Notebooks
1920 runs-on : ubuntu-latest
20- if : github.event.pull_request.draft == false
21+ needs : check_changes
22+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2123 steps :
2224 - uses : actions/checkout@v4
2325 - name : Set up Python
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-macos
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 build_appleclang :
1819 name : AppleClang
1920 runs-on : macos-latest
20- if : github.event.pull_request.draft == false
21+ needs : check_changes
22+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2123 env :
2224 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK : TRUE
2325 # For macOS, Ninja is slower than the default:
Original file line number Diff line number Diff line change 55 branches :
66 - " development"
77 pull_request :
8- paths-ignore :
9- - " Docs/**"
10- - " **.rst"
118
129concurrency :
1310 group : ${{ github.ref }}-${{ github.head_ref }}-ubuntu
1411 cancel-in-progress : true
1512
1613jobs :
14+
15+ check_changes :
16+ uses : ./.github/workflows/check_changes.yml
17+
1718 build_cxxminimal :
1819 name : GCC Minimal w/o MPI
1920 runs-on : ubuntu-24.04
20- if : github.event.pull_request.draft == false
21+ needs : check_changes
22+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2123 env :
2224 CXXFLAGS : " -Werror"
2325 steps :
5557 build_1D_2D :
5658 name : GCC 1D & 2D w/ MPI, QED tools
5759 runs-on : ubuntu-24.04
58- if : github.event.pull_request.draft == false
60+ needs : check_changes
61+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
5962 env :
6063 CXXFLAGS : " -Werror"
6164 CXX : " g++-12"
@@ -102,7 +105,8 @@ jobs:
102105 build_3D_sp :
103106 name : GCC 3D & RZ w/ MPI, single precision
104107 runs-on : ubuntu-22.04
105- if : github.event.pull_request.draft == false
108+ needs : check_changes
109+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
106110 env :
107111 CXX : " g++-12"
108112 CC : " gcc-12"
@@ -149,7 +153,8 @@ jobs:
149153 build_gcc_ablastr :
150154 name : GCC ABLASTR w/o MPI
151155 runs-on : ubuntu-24.04
152- if : github.event.pull_request.draft == false
156+ needs : check_changes
157+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
153158 env :
154159 CMAKE_GENERATOR : Ninja
155160 CXXFLAGS : " -Werror"
@@ -185,7 +190,8 @@ jobs:
185190 build_pyfull :
186191 name : Clang pywarpx
187192 runs-on : ubuntu-24.04
188- if : github.event.pull_request.draft == false
193+ needs : check_changes
194+ if : ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
189195 env :
190196 CC : clang
191197 CXX : clang++
You can’t perform that action at this time.
0 commit comments