Skip to content

Merge pull request #702 from bytedance/fix-exceptionHook #882

Merge pull request #702 from bytedance/fix-exceptionHook

Merge pull request #702 from bytedance/fix-exceptionHook #882

Workflow file for this run

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:v3.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