From 5c0dbc8ea26eb982a42293bd795bc0252e5bb72a Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 24 Jul 2021 14:19:18 +0200 Subject: ci: use nightly version from rust-toolchain.toml instead of latest. --- .github/workflows/rust.yml | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) (limited to '.github') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 225b523..5c5f8e2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,37 +2,28 @@ name: Rust on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - target: thumbv7em-none-eabihf - override: true - components: rustfmt - - - name: Build - run: ./ci.sh - - - name: Format - run: cargo fmt --verbose - + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: Check fmt + run: cargo fmt -- --check + - name: Build + run: ./ci.sh -- cgit v1.2.3