Skip to content

Update actions/checkout action to v6 (#24) #66

Update actions/checkout action to v6 (#24)

Update actions/checkout action to v6 (#24) #66

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Format
run: cargo fmt --check
- name: Clippy common
run: cargo clippy --features std,wasm,embassy,embedded_hal --tests -- -D warnings
- name: Clippy embedded_hal_old
run: cargo clippy --features embedded_hal_old -- -D warnings
- name: Clippy no default
run: cargo clippy --no-default-features -- -D warnings
- name: Install dependencies
run: |
rustup target add thumbv7m-none-eabi
rustup target add wasm32-unknown-unknown
- name: Clippy example stm32
working-directory: examples/stm32
run: cargo clippy -- -D warnings
- name: Clippy example stm32-embassy
working-directory: examples/stm32-embassy
run: cargo clippy -- -D warnings
- name: Build example wasm
working-directory: examples/wasm
run: cargo build --target wasm32-unknown-unknown
- name: Tests
run: cargo test tests --features std