Skip to content

Commit ac9ca27

Browse files
committed
Add concurrency
1 parent 683374e commit ac9ca27

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/workflow.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- ".codebuild/**"
1414
- ".circleci/**"
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
build_gcm:
1822
name: Build GEOSgcm
@@ -34,39 +38,42 @@ jobs:
3438
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
3539
- name: Delete huge unnecessary tools folder
3640
run: rm -rf /opt/hostedtoolcache
37-
- name: Cancel Previous Runs
38-
uses: styfle/cancel-workflow-action@0.12.1
39-
with:
40-
access_token: ${{ github.token }}
41+
4142
- name: Checkout GCM
4243
uses: actions/checkout@v4
4344
with:
4445
fetch-depth: 1
4546
filter: blob:none
4647
repository: GEOS-ESM/GEOSgcm
48+
4749
- name: Set all directories as git safe
4850
run: |
4951
git config --global --add safe.directory '*'
52+
5053
- name: Versions etc.
5154
run: |
5255
ifort --version
5356
mpirun --version
5457
echo $BASEDIR
58+
5559
- name: Mepo clone external repos
5660
run: |
5761
mepo clone
5862
mepo status
5963
mepo develop GEOSgcm_GridComp GEOSgcm_App GMAO_Shared GEOS_Util
6064
mepo status
65+
6166
- name: Update other branches
6267
if:
6368
"!contains('refs/heads/main,refs/heads/develop', github.ref)"
6469
run: |
6570
mepo checkout-if-exists ${GITHUB_HEAD_REF}
6671
mepo status
72+
6773
- name: CMake
6874
run: |
6975
cmake -B build -S . --install-prefix=${pwd}/install -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_BUILD_TYPE=Debug -DMPIEXEC_PREFLAGS='--oversubscribe' -DUSE_F2PY=OFF
76+
7077
- name: Build
7178
run: |
7279
cd build

0 commit comments

Comments
 (0)