Skip to content

Commit

Permalink
ci: cancel overridden workflows (XRPLF#4597)
Browse files Browse the repository at this point in the history
Small quality-of-life improvements to workflows using new concurrency
control features:

https://docs.github.com/en/actions/using-jobs/using-concurrency

At time of this commit, macOS runners are oversubscribed. This may help.
  • Loading branch information
thejohnfreeman authored and ckeshava committed Jul 10, 2023
1 parent a197d5b commit 671f5df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
job:
Expand All @@ -18,7 +21,7 @@ jobs:
echo ${PATH} | tr ':' '\n'
cmake --version
doxygen --version
env
env | sort
- name: build
run: |
mkdir build
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: macos
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

Expand Down Expand Up @@ -29,7 +32,7 @@ jobs:
python --version
conan --version
cmake --version
env
env | sort
- name: build
uses: ./.github/actions/build
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: nix
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# This workflow has two job matrixes.
# They can be considered phases because the second matrix ("test")
Expand Down Expand Up @@ -57,7 +60,7 @@ jobs:
echo ${PATH} | tr ':' '\n'
conan --version
cmake --version
env
env | sort
- name: configure Conan
env:
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
Expand Down Expand Up @@ -139,7 +142,7 @@ jobs:
echo ${PATH} | tr ':' '\n'
conan --version
cmake --version
env
env | sort
ls ~/.conan
- name: checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 671f5df

Please sign in to comment.