Skip to content

Commit

Permalink
Debugging: upgrade all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Nov 19, 2024
1 parent 9db880f commit 6e4b089
Show file tree
Hide file tree
Showing 10 changed files with 211 additions and 39 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/clang_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,36 @@ on:
branches:
- "development"
pull_request:
paths-ignore:
- "Docs/**"

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

jobs:

skip_checks:
name: Skip checks?
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run PR analysis script
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
outputs:
skip: ${{ env.SKIP_CHECKS }}

build_UB_sanitizer:
name: Clang UB sanitizer
runs-on: ubuntu-22.04
container: ubuntu:23.10
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
env:
CC: clang
CXX: clang++
Expand Down Expand Up @@ -83,7 +100,8 @@ jobs:
name: Clang thread sanitizer
runs-on: ubuntu-22.04
container: ubuntu:23.10
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
env:
CC: clang
CXX: clang++
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,56 @@ on:
branches:
- "development"
pull_request:
paths-ignore:
- "Docs/**"

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

jobs:

skip_checks:
name: Skip checks?
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run PR analysis script
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
outputs:
skip: ${{ env.SKIP_CHECKS }}

run_clang_tidy:
strategy:
matrix:
dim: [1, 2, RZ, 3]
name: clang-tidy-${{ matrix.dim }}D
runs-on: ubuntu-22.04
timeout-minutes: 180
if: github.event.pull_request.draft == false
needs: skip_checks
# NOTE if condition must be checked at every step due to matrix structure
#if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
run: |
.github/workflows/dependencies/clang15.sh
- name: set up cache
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: build WarpX & run clang-tidy
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
run: |
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,29 @@ concurrency:
cancel-in-progress: true

jobs:

skip_checks:
name: Skip checks?
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run PR analysis script
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
outputs:
skip: ${{ env.SKIP_CHECKS }}

analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
permissions:
actions: read
contents: read
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- "development"
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-cuda
Expand All @@ -17,10 +15,29 @@ jobs:
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/ubuntu18.04/10.1/base/Dockerfile
# https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.5.0/share/picongpu/dockerfiles/ubuntu-1604/Dockerfile
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/

skip_checks:
name: Skip checks?
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run PR analysis script
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
outputs:
skip: ${{ env.SKIP_CHECKS }}

build_nvcc:
name: NVCC 11.3 SP
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
env:
CXXFLAGS: "-Werror"
CMAKE_GENERATOR: Ninja
Expand Down Expand Up @@ -101,7 +118,8 @@ jobs:
build_nvcc_gnumake:
name: NVCC 11.8.0 GNUmake
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -135,7 +153,8 @@ jobs:
build_nvhpc24-1-nvcc:
name: [email protected] NVCC/NVC++ Release [tests]
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
#env:
# # For NVHPC, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
Expand Down
26 changes: 22 additions & 4 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,38 @@ on:
branches:
- "development"
pull_request:
paths-ignore:
- "Docs/**"

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

jobs:

skip_checks:
name: Skip checks?
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run PR analysis script
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
outputs:
skip: ${{ env.SKIP_CHECKS }}

build_hip_3d_sp:
name: HIP 3D SP
runs-on: ubuntu-20.04
env:
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -78,7 +95,8 @@ jobs:
env:
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/insitu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,35 @@ on:
branches:
- "development"
pull_request:
paths-ignore:
- "Docs/**"

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

jobs:

skip_checks:
name: Skip checks?
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run PR analysis script
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
outputs:
skip: ${{ env.SKIP_CHECKS }}

sensei:
name: SENSEI
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
env:
CXX: clang++
CC: clang
Expand All @@ -42,7 +59,8 @@ jobs:
ascent:
name: Ascent
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
env:
CXX: g++
CC: gcc
Expand Down Expand Up @@ -82,7 +100,8 @@ jobs:
catalyst:
name: Catalyst
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
env:
CXX: g++
CC: gcc
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- "development"
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-intel
Expand All @@ -15,10 +13,29 @@ concurrency:
jobs:
# Ref.: https://github.com/rscohn2/oneapi-ci
# intel-basekit intel-hpckit are too large in size

skip_checks:
name: Skip checks?
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run PR analysis script
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
outputs:
skip: ${{ env.SKIP_CHECKS }}

build_icc:
name: oneAPI ICC SP&DP
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
# For oneAPI, Ninja is slower than the default:
#env:
# CMAKE_GENERATOR: Ninja
Expand Down Expand Up @@ -86,7 +103,8 @@ jobs:
CXXFLAGS: "-Werror -Wno-error=pass-failed -Wno-tautological-constant-compare"
# For oneAPI, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -151,7 +169,8 @@ jobs:
CXXFLAGS: "-Werror -Wno-tautological-constant-compare"
# For oneAPI, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
needs: skip_checks
if: ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/check_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ head_ref=${1}
base_ref=${2}
clone_url=${3}

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

# Add forked repository as remote
Expand Down
Loading

0 comments on commit 6e4b089

Please sign in to comment.