From 2936f0db3c60ee80efbbc4b386afa9b70f089a69 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 2 Jun 2024 16:17:12 +0200 Subject: [PATCH] chore(ci): only process the last commit per ref --- .github/workflows/benchmark.yml | 4 ++++ .github/workflows/build-upload.yml | 4 ++++ .github/workflows/coverage.yml | 4 ++++ .github/workflows/msys2.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ .github/workflows/valgrind.yml | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 7f15b788..13b80cca 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -7,6 +7,10 @@ on: pull_request: workflow_dispatch: +concurrency: + group: benchmark-${{ github.ref }} + cancel-in-progress: true + jobs: benchmark: name: Benchmark ${{ matrix.archs }} ${{ matrix.build }} on ${{ matrix.os }} diff --git a/.github/workflows/build-upload.yml b/.github/workflows/build-upload.yml index b0557677..a9a0dfac 100644 --- a/.github/workflows/build-upload.yml +++ b/.github/workflows/build-upload.yml @@ -8,6 +8,10 @@ on: - "dependabot/**" pull_request: +concurrency: + group: build-upload-${{ github.ref }} + cancel-in-progress: true + jobs: lint: name: Lint diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d0ed3544..ddfaddfe 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,6 +6,10 @@ on: - "dependabot/**" pull_request: +concurrency: + group: coverage-${{ github.ref }} + cancel-in-progress: true + jobs: build_sdist: name: Coverage diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index 6d9f7de4..8871ecb8 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -6,6 +6,10 @@ on: - "dependabot/**" pull_request: +concurrency: + group: msys2-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Test with MSYS2 ${{ matrix.sys }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3679af5b..e5c994e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,10 @@ on: - "dependabot/**" pull_request: +concurrency: + group: test-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Test diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index f98625eb..e86df764 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -6,6 +6,10 @@ on: - "dependabot/**" pull_request: +concurrency: + group: valgrind-${{ github.ref }} + cancel-in-progress: true + jobs: build_sdist: name: Valgrind