Merge pull request #19 from forged-org/feature/cargo-dist #44
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: Check CLI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- run: cargo fmt --all -- --check | |
working-directory: ./forged-cli | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y libusb-1.0-0-dev libudev-dev | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- name: cache dependencies | |
uses: swatinem/[email protected] | |
with: | |
working-directory: ./forged-cli | |
- run: cargo clippy | |
working-directory: ./forged-cli |