Skip to content

Commit 8ecc299

Browse files
committed
[#174]: github action change
1 parent 404a5fb commit 8ecc299

1 file changed

Lines changed: 9 additions & 39 deletions

File tree

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

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,7 @@ jobs:
1616

1717
- name: Set up Docker Buildx
1818
uses: docker/setup-buildx-action@v3
19-
20-
- name: Install Rust toolchain
21-
uses: dtolnay/rust-toolchain@master
22-
with:
23-
toolchain: nightly
24-
components: rust-src
25-
26-
- name: Install BPF dependencies
27-
run: |
28-
sudo apt-get update
29-
sudo apt-get install -y \
30-
clang \
31-
llvm \
32-
libelf-dev \
33-
libpcap-dev \
34-
build-essential \
35-
libbpf-dev \
36-
linux-tools-generic \
37-
linux-tools-common \
38-
protobuf-compiler
39-
40-
- name: Install bindgen-cli and bpf-linker
41-
run: |
42-
cargo install bindgen-cli
43-
cargo install bpf-linker
44-
45-
- name: Setup bpftool symlink
46-
run: |
47-
sudo ln -sf /usr/lib/linux-tools/*/bpftool /usr/local/bin/bpftool || \
48-
sudo ln -sf /usr/lib/linux-tools-*/bpftool /usr/local/bin/bpftool
49-
19+
5020
- name: Build CortexFlow Agent
5121
run: |
5222
cd core
@@ -57,18 +27,18 @@ jobs:
5727
5828
- name: Build CortexFlow Identity
5929
run: |
60-
cd core/src/components/identity
61-
chmod +x build-identity.sh
30+
cd core
31+
chmod +x identity-build.sh
6232
echo "🚀 Starting CortexFlow Identity build..."
63-
./build-identity.sh || { echo "❌ Identity build failed"; exit 1; }
33+
./identity-build.sh || { echo "❌ Identity build failed"; exit 1; }
6434
echo "✅ Identity build completed"
65-
35+
6636
- name: Build CortexFlow Metrics
6737
run: |
68-
cd core/src/components/metrics
69-
chmod +x build-metrics.sh
38+
cd core
39+
chmod +x metrics-build.sh
7040
echo "🚀 Starting CortexFlow Metrics build..."
71-
./build-metrics.sh || { echo "❌ Metrics build failed"; exit 1; }
41+
./metrics-build.sh || { echo "❌ Metrics build failed"; exit 1; }
7242
echo "✅ Metrics build completed"
7343
7444
- name: Verify Docker images were built
@@ -108,4 +78,4 @@ jobs:
10878
10979
- name: Cleanup build artifacts
11080
run: |
111-
docker system prune -f
81+
docker system prune -f

0 commit comments

Comments
 (0)