diff --git a/.github/workflows/Intel.yml b/.github/workflows/Intel.yml index 88e04944..b6d76613 100644 --- a/.github/workflows/Intel.yml +++ b/.github/workflows/Intel.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + # Use custom shell with -l so .bash_profile is sourced which loads intel/oneapi/setvars.sh # without having to do it in manually every step defaults: diff --git a/.github/workflows/Linux_options.yml b/.github/workflows/Linux_options.yml index 60f68d07..85d78ba8 100644 --- a/.github/workflows/Linux_options.yml +++ b/.github/workflows/Linux_options.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: Linux_options: runs-on: ubuntu-latest diff --git a/.github/workflows/Linux_shared.yml b/.github/workflows/Linux_shared.yml index 89a90074..8916a353 100644 --- a/.github/workflows/Linux_shared.yml +++ b/.github/workflows/Linux_shared.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: Linux_shared: runs-on: ubuntu-latest diff --git a/.github/workflows/Linux_versions.yml b/.github/workflows/Linux_versions.yml index 5a889d5b..33c2f5f7 100644 --- a/.github/workflows/Linux_versions.yml +++ b/.github/workflows/Linux_versions.yml @@ -13,6 +13,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: Linux_versions: runs-on: ubuntu-latest diff --git a/.github/workflows/MacOS.yml b/.github/workflows/MacOS.yml index 04f14d19..59089bf5 100644 --- a/.github/workflows/MacOS.yml +++ b/.github/workflows/MacOS.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: MacOS: runs-on: macos-latest diff --git a/.github/workflows/Spack.yml b/.github/workflows/Spack.yml index 0846643f..d79cd2ce 100644 --- a/.github/workflows/Spack.yml +++ b/.github/workflows/Spack.yml @@ -15,6 +15,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: # This job builds with Spack using every combination of variants and runs the CTest suite each time Spack: diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index f1f3f419..9cf92586 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -13,6 +13,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: developer: runs-on: ubuntu-latest @@ -33,7 +38,7 @@ jobs: sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev doxygen gcovr valgrind - name: checkout-bacio - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: NOAA-EMC/NCEPLIBS-bacio path: bacio @@ -49,7 +54,7 @@ jobs: make install - name: checkout-w3emc - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: NOAA-EMC/NCEPLIBS-w3emc path: w3emc @@ -66,14 +71,14 @@ jobs: - name: cache-jasper id: cache-jasper - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/Jasper key: jasper-${{ runner.os }}-4.0.0 - name: checkout-jasper if: steps.cache-jasper.outputs.cache-hit != 'true' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: jasper-software/jasper path: jasper @@ -89,13 +94,13 @@ jobs: make install - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: g2 - name: cache-data id: cache-data - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/data key: data-developer-1 diff --git a/.github/workflows/grib_utils.yml b/.github/workflows/grib_utils.yml index 72ca5b81..4a6a1621 100644 --- a/.github/workflows/grib_utils.yml +++ b/.github/workflows/grib_utils.yml @@ -13,6 +13,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: grib_utils: runs-on: ubuntu-latest