Merge pull request #8 from toxxin/add-read-flash #52
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: | |
branches: [master, staging, trying] | |
pull_request: | |
name: Run CI | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
target: thumbv7em-none-eabi | |
- name: Cache Dependencies | |
uses: Swatinem/[email protected] | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
cargo install cargo-binutils | |
rustup component add llvm-tools-preview | |
- name: Check | |
run: cargo check --target thumbv7em-none-eabi | |
- name: Clippy | |
run: cargo clippy --target thumbv7em-none-eabi | |
- name: Format | |
run: cargo fmt |