Skip to content

Commit

Permalink
GitHub Actions: Added concurrency
Browse files Browse the repository at this point in the history
Bit of boilerplate to cancel running actions when a branch is updated.

https://turso.tech/blog/simple-trick-to-save-environment-and-money-when-using-github-actions
  • Loading branch information
snej committed Jan 8, 2025
1 parent f8ef388 commit 498b89a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
branches:
- '**'

concurrency:
# Cancel any running actions when a branch is updated:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
Expand Down

0 comments on commit 498b89a

Please sign in to comment.