name: Rust
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build 6811
run: cargo build --verbose
- name: Build 6812
run: cargo build --verbose --no-default-features --features ltc6812
- name: Build 6813
run: cargo build --verbose --no-default-features --features ltc6813
- name: Run tests 6811
run: cargo test --verbose
- name: Run tests 6812
run: cargo test --verbose --no-default-features --features ltc6812
- name: Run tests 6813
run: cargo test --verbose --no-default-features --features ltc6813
- name: Run clippy 6811
run: cargo clippy --verbose -- -D warnings
- name: Run clippy 6812
run: cargo clippy --verbose --no-default-features --features ltc6812 -- -D warnings
- name: Run clippy 6813
run: cargo clippy --verbose --no-default-features --features ltc6813 -- -D warnings
- name: Run doc 6811
run: cargo doc --verbose
- name: Run doc 6812
run: cargo doc --verbose --no-default-features --features ltc6812
- name: Run doc 6813
run: cargo doc --verbose --no-default-features --features ltc6813