Skip to content

Commit 5cd181c

Browse files
committed
Implement AMReX solution for skipped required workflows
1 parent 572e5d6 commit 5cd181c

File tree

10 files changed

+83
-52
lines changed

10 files changed

+83
-52
lines changed

.github/workflows/clang_sanitizers.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-clangsanitizers
1411
cancel-in-progress: true
1512

1613
jobs:
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++
@@ -79,7 +81,7 @@ jobs:
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++

.github/workflows/clang_tidy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy
1411
cancel-in-progress: true
1512

1613
jobs:
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

.github/workflows/cuda.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-cuda
1411
cancel-in-progress: true
1512

1613
jobs:
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
@@ -98,7 +100,8 @@ jobs:
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

.github/workflows/hip.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,24 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-hip
1411
cancel-in-progress: true
1512

1613
jobs:
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
@@ -74,7 +76,8 @@ jobs:
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

.github/workflows/insitu.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-insituvis
1411
cancel-in-progress: true
1512

1613
jobs:
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
@@ -43,7 +45,8 @@ jobs:
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
@@ -83,7 +86,8 @@ jobs:
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

.github/workflows/intel.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-intel
1411
cancel-in-progress: true
1512

1613
jobs:
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
@@ -24,7 +25,8 @@ jobs:
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
@@ -89,7 +91,8 @@ jobs:
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

.github/workflows/jupyter.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-jupyter
1411
cancel-in-progress: true
1512

1613
jobs:
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

.github/workflows/macos.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-macos
1411
cancel-in-progress: true
1512

1613
jobs:
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:

.github/workflows/ubuntu.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-ubuntu
1411
cancel-in-progress: true
1512

1613
jobs:
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:
@@ -55,7 +57,8 @@ jobs:
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++

.github/workflows/windows.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
10-
- "**.rst"
118

129
concurrency:
1310
group: ${{ github.ref }}-${{ github.head_ref }}-windows
1411
cancel-in-progress: true
1512

1613
jobs:
14+
15+
check_changes:
16+
uses: ./.github/workflows/check_changes.yml
17+
1718
build_win_msvc:
1819
name: MSVC C++17 w/o MPI
1920
runs-on: windows-latest
2021
# disabled due to issues in #5230
2122
if: 0
22-
#if: github.event.pull_request.draft == false
23+
#needs: check_changes
24+
#if: ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
2325
steps:
2426
- uses: actions/checkout@v4
2527
- uses: actions/setup-python@v5
@@ -70,7 +72,8 @@ jobs:
7072
build_win_clang:
7173
name: Clang C++17 w/ OMP w/o MPI
7274
runs-on: windows-2019
73-
if: github.event.pull_request.draft == false
75+
needs: check_changes
76+
if: ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }}
7477
steps:
7578
- uses: actions/checkout@v4
7679
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)