Skip to content

Commit fb39d8e

Browse files
committed
add dependencies
1 parent 21fd51a commit fb39d8e

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/build_x86.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
- uses: rui314/setup-mold@v1
2020
- name: Run sccache-cache
2121
uses: mozilla-actions/sccache-action@v0.0.9
22-
22+
- name: Install dependencies
23+
run: apt-get install -y libmnl-dev libnftnl-dev clang
2324
- name: Build
2425
run: cargo build --verbose --release
2526
- name: Upload artifact - agent

.github/workflows/clippy.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
push:
1414
pull_request:
1515
schedule:
16-
- cron: '39 6 * * 6'
17-
16+
- cron: "39 6 * * 6"
1817

1918
env:
2019
CARGO_TERM_COLOR: always
@@ -33,6 +32,9 @@ jobs:
3332
- name: Checkout code
3433
uses: actions/checkout@v4
3534

35+
- name: Install dependencies
36+
run: apt-get install -y libmnl-dev libnftnl-dev clang
37+
3638
- name: Install Rust toolchain
3739
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
3840
with:
@@ -41,18 +43,15 @@ jobs:
4143
components: clippy
4244
override: true
4345

44-
4546
- uses: rui314/setup-mold@v1
4647
- name: Run sccache-cache
4748
uses: mozilla-actions/sccache-action@v0.0.9
4849

49-
5050
- name: Install required cargo
5151
run: cargo install clippy-sarif sarif-fmt
5252

5353
- name: Run rust-clippy
54-
run:
55-
cargo clippy
54+
run: cargo clippy
5655
--all-features
5756
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
5857
continue-on-error: true

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Odorobo Agent is meant to be run as a system agent on each bare-metal node (or a
2828
Build the Agent binary with `cargo build --release` and run it on the host machine. The Agent will listen for commands from the Gateway to create, manage, and delete VMs.
2929

3030
```bash
31+
# Install dependencies (fedora)
32+
sudo dnf in -y libmnl-devel libnftnl-devel clang-devel
33+
3134
# Build the Agent
3235
cargo build --release
3336
# Run the Agent (requires write permissions to /run/odorobo, and access to systemd's system session bus

0 commit comments

Comments
 (0)