Skip to content

Commit 04fe5dc

Browse files
committed
Fix CI/CD workflow dependencies and toolchain setup
- Add nightly Rust toolchain required by eBPF builds - Install bindgen-cli for BTF processing - Add bpftool via linux-tools packages with symlink setup - Ensure all build script dependencies are met
1 parent a488741 commit 04fe5dc

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/core-build-checks.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ jobs:
2020
- name: Install Rust toolchain
2121
uses: actions-rs/toolchain@v1
2222
with:
23-
toolchain: stable
23+
toolchain: nightly
2424
target: bpfel-unknown-none
2525
override: true
2626
components: rustfmt, clippy
2727

28+
- name: Install stable Rust for bindgen
29+
uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: stable
32+
2833
- name: Install BPF dependencies
2934
run: |
3035
sudo apt-get update
@@ -34,7 +39,17 @@ jobs:
3439
libelf-dev \
3540
libpcap-dev \
3641
build-essential \
37-
libbpf-dev
42+
libbpf-dev \
43+
linux-tools-generic \
44+
linux-tools-common
45+
46+
- name: Install bindgen-cli
47+
run: cargo install bindgen-cli
48+
49+
- name: Setup bpftool symlink
50+
run: |
51+
sudo ln -sf /usr/lib/linux-tools/*/bpftool /usr/local/bin/bpftool || \
52+
sudo ln -sf /usr/lib/linux-tools-*/bpftool /usr/local/bin/bpftool
3853
3954
- name: Build CortexFlow Agent
4055
run: |

0 commit comments

Comments
 (0)