Skip to content

Drop RCC reference from USB device #12

Drop RCC reference from USB device

Drop RCC reference from USB device #12

Workflow file for this run

on: [push]
name: Auto build
jobs:
fmt:
name: "Run rustfmt"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install toolchain"
run: rustup toolchain install stable --profile minimal -c rustfmt
- name: "Check formatting in root"
run: cargo fmt --all --check
clippy:
name: "Run clippy for ${{ matrix.target }}"
runs-on: ubuntu-latest
strategy:
matrix:
target:
- "stm32g071"
- "stm32g0b1"
steps:
- uses: actions/checkout@v4
- name: "Install toolchain"
run: rustup toolchain install stable --profile minimal -c rustfmt,clippy -t thumbv6m-none-eabi
- name: "Install libraries and gcc-arm"
run: |
sudo apt-get update
sudo apt-get install libclang-dev llvm-dev gcc-arm-none-eabi
- name: "Run clippy for debug build"
run: cargo clippy --features ${{ matrix.target }} --no-deps -- -D warnings
- name: "Run clippy for release build"
run: cargo clippy --features ${{ matrix.target }} --release --no-deps -- -D warnings
build:
name: "Build and test for ${{ matrix.target }}"
runs-on: ubuntu-latest
strategy:
matrix:
target:
- "stm32g071"
- "stm32g0b1"
steps:
- uses: actions/checkout@v4
- name: "Install toolchain"
run: rustup toolchain install stable -t thumbv6m-none-eabi
- name: "Install libraries and gcc-arm"
run: |
sudo apt-get update
sudo apt-get install libclang-dev llvm-dev gcc-arm-none-eabi
- name: "Run tests"
run: cargo test --features ${{ matrix.target }}
- name: "Debug build"
run: cargo build --features ${{ matrix.target }} --target thumbv6m-none-eabi
- name: "Release build"
run: cargo build --features ${{ matrix.target }} --release --target thumbv6m-none-eabi