Skip to content

Commit 30ac715

Browse files
committed
Prevent actions duplication on noop merge commits
1 parent 1ab5f42 commit 30ac715

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
@@ -29,6 +34,8 @@ jobs:
2934

3035
msrv:
3136
name: Rust 1.31.0
37+
needs: pre_ci
38+
if: needs.pre_ci.outputs.continue
3239
runs-on: ubuntu-latest
3340
timeout-minutes: 45
3441
steps:
@@ -48,6 +55,8 @@ jobs:
4855

4956
miri:
5057
name: Miri
58+
needs: pre_ci
59+
if: needs.pre_ci.outputs.continue
5160
runs-on: ubuntu-latest
5261
timeout-minutes: 45
5362
steps:

0 commit comments

Comments
 (0)