Add dependencies from crates.io #13
This file contains hidden or 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: Rust | |
| on: | |
| push: | |
| pull_request: | |
| merge_group: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Format Devices | |
| run: | | |
| cd device | |
| for package in $(ls -d usb*); do | |
| echo Format $package | |
| (cd $package && cargo fmt --check) | |
| done | |
| - name: Format Rust Host | |
| run: | | |
| cd host/usb-bulk-rust | |
| cargo fmt --check | |
| - name: Build Devices | |
| run: | | |
| cd device | |
| for package in $(ls -d usb*); do | |
| echo Build $package | |
| (cd $package && cargo build) | |
| done | |
| - name: Build Rust Host | |
| run: | | |
| cd host/usb-bulk-rust | |
| cargo build | |
| - name: Clippy Devices | |
| run: | | |
| cd device | |
| for package in $(ls -d usb*); do | |
| echo Clippy $package | |
| (cd $package && cargo clippy -- -Dwarnings) | |
| done | |
| - name: Clippy Rust Host | |
| run: | | |
| cd host/usb-bulk-rust | |
| cargo clippy -- -Dwarnings |