From b901c3d04a3d4e7731034317d9f0209123a4a365 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Sat, 5 Oct 2019 21:31:49 +0200 Subject: [PATCH] install rustfmt with fallback for gh-actions Signed-off-by: Yoshua Wuyts --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59f149de..55c32e74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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