-
Notifications
You must be signed in to change notification settings - Fork 426
58 lines (50 loc) · 1.62 KB
/
Elkeid.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Elkeid
on:
push:
branches:
- main
- 'rasp/*'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build Agent
run: cd agent && go build -o elkeid-agent
- name: Build Server
run: |
cd server/agent_center && ./build.sh && cd -
cd server/service_discovery && ./build.sh && cd -
cd server/manager && ./build.sh && cd -
- name: Build RASP
run: |
curl -fsSL https://lf3-static.bytednsdoc.com/obj/eden-cn/kplrsl/ljhwZthlaukjlkulzlp/php-headers.tar.gz | tar -xz -C rasp/php
docker run --rm --pull=always -v $(pwd):/Elkeid yoloyyh/rasp-toolchain:v1.0 \
make -C /Elkeid/rasp \
STATIC=TRUE \
PY_PREBUILT=TRUE \
CC=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc \
CXX=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-g++ \
LD=/opt/x86_64-linux-musl-native/bin/ld \
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/opt/x86_64-linux-musl-native/bin/ld \
GNU_CC=/opt/gcc-10.4.0/bin/gcc \
GNU_CXX=/opt/gcc-10.4.0/bin/g++ \
PHP_HEADERS=/Elkeid/rasp/php/php-headers \
PYTHON2_INCLUDE=/usr/include/python2.7 \
PYTHON3_INCLUDE=/usr/include/python3.6m \
-j$(nproc)
- name: Upload RASP
uses: actions/upload-artifact@v3
with:
name: rasp
path: |
rasp/rasp-*.tar.gz
rasp/SHA256SUMS