From d1078f319ff3f247a50647e3dfd3268a20837e79 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sat, 10 Apr 2021 18:58:50 +0100 Subject: [PATCH] add some standard github action --- .github/workflows/rust.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 00000000..3b769f81 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,37 @@ +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + - name: Install build tools + run: apt-get install binutils-arm-none-eabi -y + - uses: actions/checkout@v2 + - name: Nightly rust with required components + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + components: clippy, rust-src + + - name: Cache + uses: actions/cache@v2.1.1 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ steps.rust_install.outputs.rustc_hash }} + + - name: Build + run: cargo build --verbose + - name: Run Clippy + run: cargo clippy --verbose + + \ No newline at end of file