diff --git a/.github/workflows/clippy-rustfmt.yml b/.github/workflows/clippy-rustfmt.yml index 04ed4849..208e976f 100644 --- a/.github/workflows/clippy-rustfmt.yml +++ b/.github/workflows/clippy-rustfmt.yml @@ -19,11 +19,11 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust Nightly - run: | - rustc -vV - rustup toolchain install nightly --allow-downgrade --component=clippy,rustfmt --profile=minimal - rustup default nightly - rustc -vV + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy - name: rustfmt run: cargo fmt --all -- --check diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3182f267..de8a5e09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,11 +16,10 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust Stable - run: | - rustc -vV - rustup update stable - rustup default stable - rustc -vV + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true - name: test (netlink-sys) run: |