diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3e6c6f6..ae529b4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,34 +10,23 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Setup nightly toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - components: rustfmt, clippy + - name: Setup Rust toolchain + run: | + rustup toolchain install stable --profile minimal --no-self-update -c clippy -c rustfmt + rustup default stable + shell: bash + + - name: "Print Rust toolchain version" + run: rustc --version --verbose + shell: bash + + - uses: Swatinem/rust-cache@v2 - name: Fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: Clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings - - - name: Check - uses: actions-rs/cargo@v1 - with: - command: check - args: --release + run: cargo clippy -- -D warnings - name: Test - uses: actions-rs/cargo@v1 - with: - command: test - args: --release + run: cargo test --release