Drop RCC reference from USB device #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |