Skip to content

Commit 6050c94

Browse files
committed
Prevent actions duplication on noop merge commits
1 parent 3d682aa commit 6050c94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 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
@@ -34,6 +39,8 @@ jobs:
3439

3540
msrv:
3641
name: Rust 1.39.0
42+
needs: pre_ci
43+
if: needs.pre_ci.outputs.continue
3744
runs-on: ubuntu-latest
3845
timeout-minutes: 45
3946
steps:
@@ -53,6 +60,8 @@ jobs:
5360

5461
miri:
5562
name: Miri
63+
needs: pre_ci
64+
if: needs.pre_ci.outputs.continue
5665
runs-on: ubuntu-latest
5766
timeout-minutes: 45
5867
steps:

0 commit comments

Comments
 (0)