Skip to content

Merge branch 'master' of github.com:makers-for-life/makair-control-ui #824

Merge branch 'master' of github.com:makers-for-life/makair-control-ui

Merge branch 'master' of github.com:makers-for-life/makair-control-ui #824

Workflow file for this run

name: Control Lint
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/[email protected]
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install libs
run: |
sudo apt-get update -y
sudo apt-get install -y libxcb-shape0 libxcb-shape0-dev libxcb-xfixes0 libxcb-xfixes0-dev libudev-dev
- name: Cache build artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-check
- name: Lint
uses: actions-rs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
- name: Check code style
uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check
- name: Build lib
uses: actions-rs/[email protected]
with:
command: build
- name: Test lib
uses: actions-rs/[email protected]
with:
command: test