Skip to content

Commit

Permalink
upgrading CI cache and chechout versions in GitHub actions files (#597)
Browse files Browse the repository at this point in the history
* upgrading CI

* more upgrades
  • Loading branch information
edwardhartnett authored Jan 31, 2024
1 parent e347b4c commit 72c46ed
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/Intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/Linux_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/Linux_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/Linux_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/MacOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/Spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/grib_utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72c46ed

Please sign in to comment.