Skip to content

Commit 0a45d76

Browse files
committed
Prevent actions duplication on noop merge commits
1 parent 3d91f13 commit 0a45d76

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ env:
1212
RUSTFLAGS: -Dwarnings
1313

1414
jobs:
15+
pre_ci:
16+
uses: dtolnay/.github/.github/workflows/pre_ci.yml@master
17+
1518
test:
1619
name: Rust ${{matrix.rust}}
20+
needs: pre_ci
21+
if: needs.pre_ci.outputs.continue
1722
runs-on: ubuntu-latest
1823
strategy:
1924
fail-fast: false
@@ -32,6 +37,8 @@ jobs:
3237

3338
build:
3439
name: Rust ${{matrix.rust}}
40+
needs: pre_ci
41+
if: needs.pre_ci.outputs.continue
3542
runs-on: ubuntu-latest
3643
strategy:
3744
fail-fast: false
@@ -51,6 +58,8 @@ jobs:
5158

5259
windows:
5360
name: Windows
61+
needs: pre_ci
62+
if: needs.pre_ci.outputs.continue
5463
runs-on: windows-latest
5564
timeout-minutes: 45
5665
steps:
@@ -74,6 +83,8 @@ jobs:
7483

7584
miri:
7685
name: Miri
86+
needs: pre_ci
87+
if: needs.pre_ci.outputs.continue
7788
runs-on: ubuntu-latest
7889
timeout-minutes: 45
7990
steps:

0 commit comments

Comments
 (0)