From 76520e761aa399bb1921d6d63f8135660e9e732a Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 22 Nov 2019 15:53:24 +0100 Subject: [PATCH] Fix rustfmt check on Github Actions (#688) --- .github/workflows/build-code.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-code.yml b/.github/workflows/build-code.yml index a1aedf08..af4adc1c 100644 --- a/.github/workflows/build-code.yml +++ b/.github/workflows/build-code.yml @@ -66,15 +66,11 @@ jobs: timeout-minutes: 2 steps: - uses: actions/checkout@v1 - - name: "Find latest Nightly with rustfmt" - id: component - uses: actions-rs/components-nightly@v1 - with: - component: rustfmt - - name: "Add a rustup override for rustfmt nightly" + - name: "Use the latest Rust nightly with rustfmt" uses: actions-rs/toolchain@v1 with: - toolchain: ${{ steps.component.outputs.toolchain }} + toolchain: nightly + profile: minimal + components: rustfmt override: true - - run: rustup component add rustfmt - run: cargo fmt -- --check