From 8c2413e00975f36a639e8f121a81fa236be0ab7d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 24 May 2021 16:31:48 -0500 Subject: [PATCH] Try to ease up on CI usage slightly (#2932) * First remove `fail-fast: false` annotations to fail faster. If desired this could always be added in a on-off fashion to PRs. * Next use the new `concurrency` feature to try to cancel previous builds, ideally meaning that if a branch is pushed to multiple times it only runs CI once. --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6990aa6ec1..43d26b126f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,12 @@ defaults: run: shell: bash +# Cancel any in-flight jobs for the same PR/branch so there's only one active +# at a time +concurrency: + group: ${{ github.head_ref }} + cancel-in-progress: true + jobs: # Check Code style quickly by running `rustfmt` over all code rustfmt: @@ -209,7 +215,6 @@ jobs: name: Test runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: build: [stable, beta, nightly, windows, macos] include: @@ -392,7 +397,6 @@ jobs: name: Build wasmtime runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: include: - build: x86_64-linux