ci: cancel overridden workflows (#4597)

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.
This commit is contained in:
John Freeman
2023-06-29 17:31:36 -05:00
committed by GitHub
parent 1c2ae10dc0
commit 54afdaa101
3 changed files with 13 additions and 4 deletions

View File

@@ -4,6 +4,9 @@ on:
push: push:
branches: branches:
- develop - develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
job: job:
@@ -18,7 +21,7 @@ jobs:
echo ${PATH} | tr ':' '\n' echo ${PATH} | tr ':' '\n'
cmake --version cmake --version
doxygen --version doxygen --version
env env | sort
- name: build - name: build
run: | run: |
mkdir build mkdir build

View File

@@ -1,5 +1,8 @@
name: macos name: macos
on: [push, pull_request] on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
@@ -29,7 +32,7 @@ jobs:
python --version python --version
conan --version conan --version
cmake --version cmake --version
env env | sort
- name: build - name: build
uses: ./.github/actions/build uses: ./.github/actions/build
with: with:

View File

@@ -1,5 +1,8 @@
name: nix name: nix
on: [push, pull_request] on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# This workflow has two job matrixes. # This workflow has two job matrixes.
# They can be considered phases because the second matrix ("test") # They can be considered phases because the second matrix ("test")
@@ -57,7 +60,7 @@ jobs:
echo ${PATH} | tr ':' '\n' echo ${PATH} | tr ':' '\n'
conan --version conan --version
cmake --version cmake --version
env env | sort
- name: configure Conan - name: configure Conan
env: env:
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
@@ -139,7 +142,7 @@ jobs:
echo ${PATH} | tr ':' '\n' echo ${PATH} | tr ':' '\n'
conan --version conan --version
cmake --version cmake --version
env env | sort
ls ~/.conan ls ~/.conan
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3