add a current_standby()
method when the pin implements StatefulOututPin
#72
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
name: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
jobs: | |
lib: | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: [1.63.0, stable] | |
features: ['', '--all-features'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt clippy | |
- name: build | |
run: cargo build ${{ matrix.features }} | |
- name: check | |
run: cargo check ${{ matrix.features }} | |
- name: test | |
run: cargo test ${{ matrix.features }} | |
- name: check formatting | |
run: cargo fmt --all -- --check | |
- name: clippy | |
run: cargo clippy ${{ matrix.features }} | |
- name: audit | |
run: cargo audit | |
stm32f4-single-motor-example: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: thumbv7em-none-eabihf | |
components: rustfmt clippy | |
- name: Install flip-link | |
run: cargo install flip-link | |
- name: build | |
run: cargo build | |
working-directory: examples/stm32f4-single-motor-example | |
- name: check | |
run: cargo check | |
working-directory: examples/stm32f4-single-motor-example | |
# no tests available for now => no test step as it'd fail otherwise | |
- name: check formatting | |
run: cargo fmt --all -- --check | |
working-directory: examples/stm32f4-single-motor-example | |
- name: clippy | |
run: cargo clippy | |
working-directory: examples/stm32f4-single-motor-example | |
- name: audit | |
run: cargo audit | |
working-directory: examples/stm32f4-single-motor-example |