forked from mirror/async-std
Merge pull request #280 from async-rs/components-nightly
install rustfmt with fallback for gh-actions
This commit is contained in:
commit
51e7f880b1
1 changed files with 11 additions and 1 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -41,12 +41,22 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- id: component
|
||||
uses: actions-rs/components-nightly@v1
|
||||
with:
|
||||
component: rustfmt
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ steps.component.outputs.toolchain }}
|
||||
override: true
|
||||
|
||||
- name: setup
|
||||
run: |
|
||||
rustup default nightly
|
||||
rustup component add rustfmt
|
||||
test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh
|
||||
rustc --version
|
||||
|
||||
- name: mdbook
|
||||
run: |
|
||||
mdbook build docs
|
||||
|
|
Loading…
Reference in a new issue