change CDN url of php headers #635
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
go-version: 1.18 | |
- 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 hackerl/rasp-toolchain \ | |
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 |