Skip to content

Commit

Permalink
chore(ci): add cargo machete (#5323)
Browse files Browse the repository at this point in the history
Description
---
Adds cargo machete to check for dependencies

Motivation and Context
---
Helps keep the dependencies clean
  • Loading branch information
SWvheerden authored Apr 18, 2023
1 parent 22a3a17 commit f9ff526
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,31 @@ jobs:
with:
command: lints
args: clippy --all-targets --all-features
machete:
name: machete
#runs-on: [ self-hosted, ubuntu18.04-high-cpu ]
runs-on: [ubuntu-20.04]
steps:
- name: checkout
uses: actions/checkout@v3
- name: toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.toolchain }}
components: clippy, rustfmt
- name: ubuntu dependencies
run: |
sudo apt-get update
sudo bash scripts/install_ubuntu_dependencies.sh
- name: Install cargo-machete
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-machete
- name: cargo machete check
uses: actions-rs/cargo@v1
with:
command: machete
build:
name: cargo check
runs-on: [self-hosted, ubuntu18.04-high-cpu]
Expand Down
1 change: 0 additions & 1 deletion applications/tari_console_wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ tari_comms = { path = "../../comms/core" }
tari_comms_dht = { path = "../../comms/dht" }
tari_contacts = { path = "../../base_layer/contacts" }
tari_crypto = { version = "0.16.11"}
tari_features = { version = "0.50.0-pre.0", path = "../../common/tari_features"}
tari_key_manager = { path = "../../base_layer/key_manager" }
tari_libtor = { path = "../../infrastructure/libtor", optional = true }
tari_p2p = { path = "../../base_layer/p2p", features = ["auto-update"] }
Expand Down

0 comments on commit f9ff526

Please sign in to comment.