Skip to content

Commit 6e4b089

Browse files
committed
Debugging: upgrade all workflows
1 parent 9db880f commit 6e4b089

File tree

10 files changed

+211
-39
lines changed

10 files changed

+211
-39
lines changed

.github/workflows/clang_sanitizers.yml

+22-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,36 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
108

119
concurrency:
1210
group: ${{ github.ref }}-${{ github.head_ref }}-clangsanitizers
1311
cancel-in-progress: true
1412

1513
jobs:
14+
15+
skip_checks:
16+
name: Skip checks?
17+
runs-on: macos-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Run PR analysis script
24+
run: |
25+
.github/workflows/scripts/check_diff.sh \
26+
${{ github.event.pull_request.head.ref }} \
27+
${{ github.event.pull_request.base.ref }} \
28+
${{ github.event.pull_request.head.repo.clone_url }}
29+
outputs:
30+
skip: ${{ env.SKIP_CHECKS }}
31+
1632
build_UB_sanitizer:
1733
name: Clang UB sanitizer
1834
runs-on: ubuntu-22.04
1935
container: ubuntu:23.10
20-
if: github.event.pull_request.draft == false
36+
needs: skip_checks
37+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
2138
env:
2239
CC: clang
2340
CXX: clang++
@@ -83,7 +100,8 @@ jobs:
83100
name: Clang thread sanitizer
84101
runs-on: ubuntu-22.04
85102
container: ubuntu:23.10
86-
if: github.event.pull_request.draft == false
103+
needs: skip_checks
104+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
87105
env:
88106
CC: clang
89107
CXX: clang++

.github/workflows/clang_tidy.yml

+24-3
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,56 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
108

119
concurrency:
1210
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy
1311
cancel-in-progress: true
1412

1513
jobs:
14+
15+
skip_checks:
16+
name: Skip checks?
17+
runs-on: macos-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Run PR analysis script
24+
run: |
25+
.github/workflows/scripts/check_diff.sh \
26+
${{ github.event.pull_request.head.ref }} \
27+
${{ github.event.pull_request.base.ref }} \
28+
${{ github.event.pull_request.head.repo.clone_url }}
29+
outputs:
30+
skip: ${{ env.SKIP_CHECKS }}
31+
1632
run_clang_tidy:
1733
strategy:
1834
matrix:
1935
dim: [1, 2, RZ, 3]
2036
name: clang-tidy-${{ matrix.dim }}D
2137
runs-on: ubuntu-22.04
2238
timeout-minutes: 180
23-
if: github.event.pull_request.draft == false
39+
needs: skip_checks
40+
# NOTE if condition must be checked at every step due to matrix structure
41+
#if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
2442
steps:
2543
- uses: actions/checkout@v4
2644
- name: install dependencies
45+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
2746
run: |
2847
.github/workflows/dependencies/clang15.sh
2948
- name: set up cache
49+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
3050
uses: actions/cache@v4
3151
with:
3252
path: ~/.cache/ccache
3353
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
3454
restore-keys: |
3555
ccache-${{ github.workflow }}-${{ github.job }}-git-
3656
- name: build WarpX & run clang-tidy
57+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
3758
run: |
3859
export CCACHE_COMPRESS=1
3960
export CCACHE_COMPRESSLEVEL=10

.github/workflows/codeql.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,29 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
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+
1634
analyze:
1735
name: Analyze
1836
runs-on: ubuntu-latest
19-
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 }}
2039
permissions:
2140
actions: read
2241
contents: read

.github/workflows/cuda.yml

+24-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
108

119
concurrency:
1210
group: ${{ github.ref }}-${{ github.head_ref }}-cuda
@@ -17,10 +15,29 @@ jobs:
1715
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/ubuntu18.04/10.1/base/Dockerfile
1816
# https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.5.0/share/picongpu/dockerfiles/ubuntu-1604/Dockerfile
1917
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/
18+
19+
skip_checks:
20+
name: Skip checks?
21+
runs-on: macos-latest
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
- name: Run PR analysis script
28+
run: |
29+
.github/workflows/scripts/check_diff.sh \
30+
${{ github.event.pull_request.head.ref }} \
31+
${{ github.event.pull_request.base.ref }} \
32+
${{ github.event.pull_request.head.repo.clone_url }}
33+
outputs:
34+
skip: ${{ env.SKIP_CHECKS }}
35+
2036
build_nvcc:
2137
name: NVCC 11.3 SP
2238
runs-on: ubuntu-20.04
23-
if: github.event.pull_request.draft == false
39+
needs: skip_checks
40+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
2441
env:
2542
CXXFLAGS: "-Werror"
2643
CMAKE_GENERATOR: Ninja
@@ -101,7 +118,8 @@ jobs:
101118
build_nvcc_gnumake:
102119
name: NVCC 11.8.0 GNUmake
103120
runs-on: ubuntu-20.04
104-
if: github.event.pull_request.draft == false
121+
needs: skip_checks
122+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
105123
steps:
106124
- uses: actions/checkout@v4
107125
- name: install dependencies
@@ -135,7 +153,8 @@ jobs:
135153
build_nvhpc24-1-nvcc:
136154
name: [email protected] NVCC/NVC++ Release [tests]
137155
runs-on: ubuntu-20.04
138-
if: github.event.pull_request.draft == false
156+
needs: skip_checks
157+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
139158
#env:
140159
# # For NVHPC, Ninja is slower than the default:
141160
# CMAKE_GENERATOR: Ninja

.github/workflows/hip.yml

+22-4
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,38 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
108

119
concurrency:
1210
group: ${{ github.ref }}-${{ github.head_ref }}-hip
1311
cancel-in-progress: true
1412

1513
jobs:
14+
15+
skip_checks:
16+
name: Skip checks?
17+
runs-on: macos-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Run PR analysis script
24+
run: |
25+
.github/workflows/scripts/check_diff.sh \
26+
${{ github.event.pull_request.head.ref }} \
27+
${{ github.event.pull_request.base.ref }} \
28+
${{ github.event.pull_request.head.repo.clone_url }}
29+
outputs:
30+
skip: ${{ env.SKIP_CHECKS }}
31+
1632
build_hip_3d_sp:
1733
name: HIP 3D SP
1834
runs-on: ubuntu-20.04
1935
env:
2036
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
2137
CMAKE_GENERATOR: Ninja
22-
if: github.event.pull_request.draft == false
38+
needs: skip_checks
39+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
2340
steps:
2441
- uses: actions/checkout@v4
2542
- name: install dependencies
@@ -78,7 +95,8 @@ jobs:
7895
env:
7996
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
8097
CMAKE_GENERATOR: Ninja
81-
if: github.event.pull_request.draft == false
98+
needs: skip_checks
99+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
82100
steps:
83101
- uses: actions/checkout@v4
84102
- name: install dependencies

.github/workflows/insitu.yml

+24-5
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,35 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
108

119
concurrency:
1210
group: ${{ github.ref }}-${{ github.head_ref }}-insituvis
1311
cancel-in-progress: true
1412

1513
jobs:
14+
15+
skip_checks:
16+
name: Skip checks?
17+
runs-on: macos-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Run PR analysis script
24+
run: |
25+
.github/workflows/scripts/check_diff.sh \
26+
${{ github.event.pull_request.head.ref }} \
27+
${{ github.event.pull_request.base.ref }} \
28+
${{ github.event.pull_request.head.repo.clone_url }}
29+
outputs:
30+
skip: ${{ env.SKIP_CHECKS }}
31+
1632
sensei:
1733
name: SENSEI
1834
runs-on: ubuntu-20.04
19-
if: github.event.pull_request.draft == false
35+
needs: skip_checks
36+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
2037
env:
2138
CXX: clang++
2239
CC: clang
@@ -42,7 +59,8 @@ jobs:
4259
ascent:
4360
name: Ascent
4461
runs-on: ubuntu-20.04
45-
if: github.event.pull_request.draft == false
62+
needs: skip_checks
63+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
4664
env:
4765
CXX: g++
4866
CC: gcc
@@ -82,7 +100,8 @@ jobs:
82100
catalyst:
83101
name: Catalyst
84102
runs-on: ubuntu-22.04
85-
if: github.event.pull_request.draft == false
103+
needs: skip_checks
104+
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
86105
env:
87106
CXX: g++
88107
CC: gcc

.github/workflows/intel.yml

+24-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- "development"
77
pull_request:
8-
paths-ignore:
9-
- "Docs/**"
108

119
concurrency:
1210
group: ${{ github.ref }}-${{ github.head_ref }}-intel
@@ -15,10 +13,29 @@ concurrency:
1513
jobs:
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
@@ -86,7 +103,8 @@ jobs:
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

.github/workflows/scripts/check_diff.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ head_ref=${1}
99
base_ref=${2}
1010
clone_url=${3}
1111

12-
# Set paths to ignore
12+
# Set paths to ignore (FIXME update this before merging)
1313
paths_ignore="^(Docs|\.github)/|\.azure-pipelines\.yml$"
1414

1515
# Add forked repository as remote

0 commit comments

Comments
 (0)