From 13f2ad96cb8b4ca794803f44ac626d443c4d6ca6 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Fri, 3 Sep 2021 19:57:30 +0200 Subject: [PATCH] ci: Use GitHub concurrency --- .github/workflows/cygwin.yml | 4 ++++ .github/workflows/file_format.yml | 4 ++++ .github/workflows/images.yml | 4 ++++ .github/workflows/lint_mypy.yml | 4 ++++ .github/workflows/macos.yml | 4 ++++ .github/workflows/msys2.yml | 4 ++++ .github/workflows/nonative.yml | 4 ++++ .github/workflows/os_comp.yml | 4 ++++ .github/workflows/unusedargs_missingreturn.yml | 4 ++++ .github/workflows/website.yml | 5 +++++ 10 files changed, 41 insertions(+) diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index 39540941c..224f82d41 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -1,5 +1,9 @@ name: cygwin +concurrency: + group: cygwin-${{ github.head_ref }} + cancel-in-progress: true + on: push: paths: diff --git a/.github/workflows/file_format.yml b/.github/workflows/file_format.yml index a41c61203..278fb297d 100644 --- a/.github/workflows/file_format.yml +++ b/.github/workflows/file_format.yml @@ -2,6 +2,10 @@ name: File format check on: [push, pull_request] +concurrency: + group: file_fmt-${{ github.head_ref }} + cancel-in-progress: true + jobs: format: runs-on: ubuntu-latest diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index 1a1a2d933..9c11f4d2d 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -1,5 +1,9 @@ name: CI image builder +concurrency: + group: img_builder-${{ github.head_ref }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/lint_mypy.yml b/.github/workflows/lint_mypy.yml index 5ac64a062..195d733de 100644 --- a/.github/workflows/lint_mypy.yml +++ b/.github/workflows/lint_mypy.yml @@ -1,5 +1,9 @@ name: LintMypy +concurrency: + group: mypy-${{ github.head_ref }} + cancel-in-progress: true + on: push: paths: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c7ef7d3bf..90fc56b61 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,5 +1,9 @@ name: macos +concurrency: + group: macos-${{ github.head_ref }} + cancel-in-progress: true + on: push: paths: diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index 64a09792b..f0cfa5d28 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -1,5 +1,9 @@ name: msys2 +concurrency: + group: msys2-${{ github.head_ref }} + cancel-in-progress: true + on: push: paths: diff --git a/.github/workflows/nonative.yml b/.github/workflows/nonative.yml index c4bad9531..4adffbe14 100644 --- a/.github/workflows/nonative.yml +++ b/.github/workflows/nonative.yml @@ -1,5 +1,9 @@ name: Cross-only compilation environment +concurrency: + group: nonative-${{ github.head_ref }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/os_comp.yml b/.github/workflows/os_comp.yml index dc5f36846..dc1786000 100644 --- a/.github/workflows/os_comp.yml +++ b/.github/workflows/os_comp.yml @@ -1,5 +1,9 @@ name: linux +concurrency: + group: linux-${{ github.head_ref }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/unusedargs_missingreturn.yml b/.github/workflows/unusedargs_missingreturn.yml index 8e6e42de1..f5cf76c23 100644 --- a/.github/workflows/unusedargs_missingreturn.yml +++ b/.github/workflows/unusedargs_missingreturn.yml @@ -9,6 +9,10 @@ env: CPPFLAGS: "-Werror=unused-parameter -Werror=return-type" FFLAGS: "-fimplicit-none" +concurrency: + group: unusedargs-${{ github.head_ref }} + cancel-in-progress: true + on: push: paths: diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 3fee7bfe7..efb7fed7e 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -1,5 +1,10 @@ name: Update website +concurrency: + group: mesonbuild.com + # We do NOT want `cancel-in-progress` here since only one website job + # should run at a time to avoid upload race condtions. + on: push: branches: