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.
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -9,6 +9,12 @@ defaults:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
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:
|
jobs:
|
||||||
# Check Code style quickly by running `rustfmt` over all code
|
# Check Code style quickly by running `rustfmt` over all code
|
||||||
rustfmt:
|
rustfmt:
|
||||||
@@ -209,7 +215,6 @@ jobs:
|
|||||||
name: Test
|
name: Test
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
matrix:
|
||||||
build: [stable, beta, nightly, windows, macos]
|
build: [stable, beta, nightly, windows, macos]
|
||||||
include:
|
include:
|
||||||
@@ -392,7 +397,6 @@ jobs:
|
|||||||
name: Build wasmtime
|
name: Build wasmtime
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- build: x86_64-linux
|
- build: x86_64-linux
|
||||||
|
|||||||
Reference in New Issue
Block a user