Skip to content

Merge pull request #79 from grupacosmo/Bartosz-Slowik-patch-1 #311

Merge pull request #79 from grupacosmo/Bartosz-Slowik-patch-1

Merge pull request #79 from grupacosmo/Bartosz-Slowik-patch-1 #311

Workflow file for this run

name: general
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- main
jobs:
build:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-06-01
targets: "thumbv7em-none-eabihf"
- run: sudo apt-get install libudev-dev
- uses: actions-rs/cargo@v1
with:
command: xtask
args: build
- uses: actions-rs/cargo@v1
with:
command: xtask
args: test
fmt:
name: fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-06-01
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-06-01
components: clippy
- run: sudo apt-get install libudev-dev
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings