Skip to content

Commit 9ef7987

Browse files
authored
Merge pull request #2227 from messense/ci-no-fail-fast
CI: keep going on failure only if `CI-no-fail-fast` label is present
2 parents 84b5a8c + 0f00196 commit 9ef7987

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
needs: [fmt]
4848
runs-on: ubuntu-latest
4949
strategy:
50-
fail-fast: false # If one platform fails, allow the rest to keep testing.
50+
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
51+
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
5152
matrix:
5253
target: [powerpc64le-unknown-linux-gnu, s390x-unknown-linux-gnu, wasm32-wasi]
5354
name: check-${{ matrix.target }}
@@ -79,7 +80,8 @@ jobs:
7980
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} rust-${{ matrix.rust }}
8081
runs-on: ${{ matrix.platform.os }}
8182
strategy:
82-
fail-fast: false # If one platform fails, allow the rest to keep testing.
83+
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
84+
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
8385
matrix:
8486
rust: [stable]
8587
python-version: [

0 commit comments

Comments
 (0)