Skip to content

Commit b901c3d

Browse files
committed
install rustfmt with fallback for gh-actions
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent 6fe958f commit b901c3d

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)