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.
This commit is contained in:
Nickolay Ponomarev 2020-05-26 21:33:10 +03:00
parent f614481133
commit 8406a938d5

View file

@ -4,14 +4,13 @@ on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Setup Rust - name: Setup Rust
run: | run: |
rustup toolchain install nightly && rustup component add --toolchain nightly rustfmt rustup toolchain install nightly --profile default
rustup toolchain install stable rustup toolchain install stable
rustup override set stable rustup override set stable
# Clippy must be run first, as its lints are only triggered during # Clippy must be run first, as its lints are only triggered during