Skip to content

Commit

Permalink
Skip some CIs if only Docs/ has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Oct 22, 2024
1 parent 0c7df10 commit bef2bcf
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
castro:
name: Castro
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Get Latest Release Tag
Expand Down Expand Up @@ -62,6 +63,7 @@ jobs:
warpx:
name: WarpX
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Download WarpX
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bittree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
bittree-2d:
name: Bittree 2D
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -62,6 +63,7 @@ jobs:
bittree-3d:
name: Bittree 3D
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/check_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check Changes

on:
workflow_call:
outputs:
has_non_docs_changes: ${{ jobs.check.outputs.has_non_docs_changes }}

jobs:
check:
runs-on: ubuntu-latest
outputs:
has_non_docs_changes: ${{ steps.set-output.outputs.has_non_docs_changes }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
others:
- '!Docs/**'
- id: set-output
run: |
echo "has_non_docs_changes=${{ steps.changes.outputs.others }}" >> $GITHUB_OUTPUT
13 changes: 11 additions & 2 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -Wno-c++17-extensions: Clang complains about nodiscard if the standard is not set to c++17.

name: LinuxClang

on: [push, pull_request]
Expand All @@ -9,11 +7,16 @@ concurrency:
cancel-in-progress: true

jobs:
check_changes:
uses: ./.github/workflows/check_changes.yml

# Build and install libamrex as AMReX CMake project
# Note: this is an intentional "minimal" build that does not enable (many) options
library_clang:
name: Clang@7.0 C++17 SP NOMPI Debug [lib]
runs-on: ubuntu-20.04
needs: check_changes
if: needs.check_changes.outputs.has_non_docs_changes == 'true'
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -75,6 +78,8 @@ jobs:
tests_clang:
name: Clang@14.0 C++17 SP Particles DP Mesh Debug [tests]
runs-on: ubuntu-22.04
#needs: check_changes
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -131,6 +136,8 @@ jobs:
tests_cxx20:
name: Clang C++20 [tests]
runs-on: ubuntu-22.04
#needs: check_changes
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -180,6 +187,8 @@ jobs:
configure-2d:
name: Clang NOMPI Release [configure 2D]
runs-on: ubuntu-22.04
#needs: check_changes
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
tests-cuda11:
name: CUDA@11.2 GNU@9.3.0 C++17 Release [tests]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -62,6 +63,7 @@ jobs:
tests-cuda11-clang:
name: Clang@15 CUDA@11.7 C++17 Release [tests]
runs-on: ubuntu-22.04
if: false
env:
CC: clang-15
CXX: clang++-15
Expand Down Expand Up @@ -115,6 +117,7 @@ jobs:
tests-nvhpc-nvcc:
name: NVHPC NVCC/NVC++ C++17 Release [tests]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -178,6 +181,7 @@ jobs:
configure-3d-cuda:
name: CUDA@11.2 GNU@9.3.0 [configure 3D]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
library:
name: GNU@8.4 C++17 Release [lib]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
tests_build_3D:
name: GNU@13 C++17 3D Debug Fortran [tests]
runs-on: ubuntu-24.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -121,6 +123,7 @@ jobs:
tests_build_2D:
name: GNU@9.3 C++17 2D Debug Fortran [tests]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -170,6 +173,7 @@ jobs:
tests_build_1D:
name: GNU@9.3 C++17 1D Debug Fortran [tests]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -221,6 +225,7 @@ jobs:
tests_cxx20:
name: GNU@10.1 C++20 OMP [tests]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -281,6 +286,7 @@ jobs:
tests-nonmpi:
name: GNU@8.4 C++17 NOMPI [tests]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -340,6 +346,7 @@ jobs:
tests-nofortran:
name: GNU@12 C++17 w/o Fortran [tests]
runs-on: ubuntu-22.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -401,6 +408,7 @@ jobs:
configure-1d:
name: GNU@9.3 Release [configure 1D]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -441,6 +449,7 @@ jobs:
configure-3d:
name: GNU@11.2 Release [configure 3D]
runs-on: ubuntu-22.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -481,6 +490,7 @@ jobs:
configure-3d-single-tprof:
name: GNU@9.3 Release [configure 3D]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -522,6 +532,7 @@ jobs:
configure-3d-omp-debug:
name: GNU@9.3 OMP Debug [configure 3D]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -562,6 +573,7 @@ jobs:
plotfile-tools:
name: GNU Plotfile Tools [tools]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -601,6 +613,7 @@ jobs:
tests_run:
name: GNU@13 C++17 [tests]
runs-on: ubuntu-24.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -651,6 +664,7 @@ jobs:
test_hdf5:
name: GNU@9.3 HDF5 I/O Test [tests]
runs-on: ubuntu-20.04
if: false
env:
CXX: h5pcc
CC: h5cc
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
tests-hip:
name: HIP ROCm Flang C++17 [tests]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -69,6 +70,7 @@ jobs:
tests-hip-wrapper:
name: HIP ROCm GFortran@9.3 C++17 [tests-hipcc]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -127,6 +129,7 @@ jobs:
configure-2d-single-hip:
name: HIP EB [configure 2D]
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -160,6 +163,7 @@ jobs:
hip-3d-eb-gmake:
name: HIP EB 3D GMake
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/hypre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
compile-hypre-cuda-eb-2d:
name: CUDA EB 2D Hypre@2.26.0
runs-on: ubuntu-20.04
if: false
env:
AMREX_HYPRE_HOME: ${HOME}/.cache/hypre-2.26.0-cuda
steps:
Expand Down Expand Up @@ -61,6 +62,7 @@ jobs:
test-hypre-cpu-3d:
name: GCC 3D Hypre@2.21.0
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -110,6 +112,7 @@ jobs:
test-hypre-solver-cpu-eb-2d:
name: GCC EB 2D Hypre@2.28.0
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
tests-oneapi-sycl:
name: oneAPI SYCL [tests]
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -59,6 +60,7 @@ jobs:
tests-oneapi-sycl-eb:
name: oneAPI SYCL [tests w/ EB]
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -107,6 +109,7 @@ jobs:
tests-oneapi-sycl-eb-nvidia:
name: oneAPI SYCL for Nvidia GPUs [tests w/ EB]
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -156,6 +159,7 @@ jobs:
no-tests-oneapi-sycl-amd:
name: oneAPI SYCL for AMD GPUs
runs-on: ubuntu-20.04
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -203,6 +207,7 @@ jobs:
tests-icc:
name: ICC [tests]
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
tests-macos-universal-nompi:
name: AppleClang Universal w/o MPI [tests-universal]
runs-on: macos-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -55,6 +56,7 @@ jobs:
tests-macos:
name: AppleClang@11.0 GFortran@9.3 [tests]
runs-on: macos-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/petsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
test-petsc-cpu-2d:
name: GCC 2D EB PETSc@3.18.1
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sensei.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
test_sensei:
name: SENSEI Adaptor [test]
runs-on: ubuntu-20.04
if: false
env:
CXX: clang++
CC: clang
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
multid:
name: GNU Multi-D
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down
Loading

0 comments on commit bef2bcf

Please sign in to comment.