Skip to content

Commit 51e7f88

Browse files
authored
Merge pull request #280 from async-rs/components-nightly
install rustfmt with fallback for gh-actions
2 parents 6fe958f + b901c3d commit 51e7f88

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,22 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@master
4343

44+
- id: component
45+
uses: actions-rs/components-nightly@v1
46+
with:
47+
component: rustfmt
48+
49+
- uses: actions-rs/toolchain@v1
50+
with:
51+
toolchain: ${{ steps.component.outputs.toolchain }}
52+
override: true
53+
4454
- name: setup
4555
run: |
46-
rustup default nightly
4756
rustup component add rustfmt
4857
test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh
4958
rustc --version
59+
5060
- name: mdbook
5161
run: |
5262
mdbook build docs

0 commit comments

Comments
 (0)