From fe085ef1000de6b868750738f4a50cc986d496d3 Mon Sep 17 00:00:00 2001 From: Yannick Funk Date: Mon, 6 Sep 2021 16:40:30 +0200 Subject: [PATCH] Change to nightly --- .github/workflows/rust.yaml | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 2e0a4086..7f1c4cb7 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -10,15 +10,32 @@ env: CARGO_TERM_COLOR: always jobs: - build: - + check: + name: Rust project runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - - name: Release Build - run: cargo build --release --verbose + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + + # `cargo check` command here will use installed `nightly` + # as it is set as an "override" for current directory + + - name: Run cargo build + uses: actions-rs/cargo@v1 + with: + command: build + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + + - name: Run cargo build --release + uses: actions-rs/cargo@v1 + with: + command: build --release