From 6e2ae47ee96c1f1cd3c2aca9c13a0030373c95b0 Mon Sep 17 00:00:00 2001 From: Romain Malmain Date: Fri, 26 Apr 2024 15:03:58 +0200 Subject: [PATCH] Cancel workflow for concurrent workflow runs --- .github/workflows/build_and_test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index c6a1a54d63..dd6fb06d7b 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -6,6 +6,13 @@ on: pull_request: branches: [ main ] +env: + CARGO_TERM_COLOR: always + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: [self-hosted, qemu]