From 8406a938d5a1c61722fe730ba8d7a3190bedd687 Mon Sep 17 00:00:00 2001 From: Nickolay Ponomarev Date: Tue, 26 May 2020 21:33:10 +0300 Subject: [PATCH] Port the changes made to travis configuration in #159 to GitHub workflows This should fix the build failures due to unavailable components, e.g. error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel nightly Sometimes not all components are available in any given nightly. --- .github/workflows/rust.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0f2507b23..06db11ebf 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,14 +4,13 @@ on: [push] jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Setup Rust run: | - rustup toolchain install nightly && rustup component add --toolchain nightly rustfmt + rustup toolchain install nightly --profile default rustup toolchain install stable rustup override set stable # Clippy must be run first, as its lints are only triggered during