From 97d17190ec26153d126ddd919633140d1f2ac4e8 Mon Sep 17 00:00:00 2001 From: p0lunin Date: Fri, 3 Jul 2020 15:50:28 +0300 Subject: [PATCH] add explicit rust toolchains --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d47283b..be50cc30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,6 @@ jobs: code-checks: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -19,17 +18,33 @@ jobs: components: rustfmt, clippy - name: Cargo fmt run: cargo +nightly fmt --all -- --check + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt, clippy - name: Cargo clippy run: cargo clippy --all-targets --all-features -- -D warnings stable-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt, clippy - name: Cargo test run: cargo test --all-features test-examples: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt, clippy - name: Test the examples run: cargo check --examples