mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-08 09:37:58 +00:00
new(.circleci): test the minimal build
Co-authored-by: Leonardo Grasso <me@leonardograsso.com> Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
parent
5316e39379
commit
c2603c0130
@ -13,7 +13,7 @@ jobs:
|
|||||||
command: apk update
|
command: apk update
|
||||||
- run:
|
- run:
|
||||||
name: Install build dependencies
|
name: Install build dependencies
|
||||||
command: apk add g++ gcc cmake cmake make ncurses-dev git bash perl linux-headers autoconf automake m4 libtool elfutils-dev libelf-static patch binutils
|
command: apk add g++ gcc cmake cmake make ncurses-dev git bash perl linux-headers autoconf automake m4 libtool elfutils-dev libelf-static patch binutils
|
||||||
- run:
|
- run:
|
||||||
name: Prepare project
|
name: Prepare project
|
||||||
command: |
|
command: |
|
||||||
@ -40,6 +40,38 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- build-static/release
|
- build-static/release
|
||||||
- source-static
|
- source-static
|
||||||
|
# Build the minimal Falco
|
||||||
|
# This build only contains the Falco engine and the basic input/output.
|
||||||
|
"build/minimal":
|
||||||
|
docker:
|
||||||
|
- image: ubuntu:focal
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Update base image
|
||||||
|
command: apt update -y
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: DEBIAN_FRONTEND=noninteractive apt install libjq-dev libncurses-dev libyaml-cpp-dev libelf-dev cmake build-essential git -y
|
||||||
|
- run:
|
||||||
|
name: Prepare project
|
||||||
|
command: |
|
||||||
|
mkdir build-minimal
|
||||||
|
pushd build-minimal
|
||||||
|
cmake -DMINIMAL_BUILD=On -DBUILD_BPF=Off -DBUILD_DRIVER=Off -DCMAKE_BUILD_TYPE=Release ..
|
||||||
|
popd
|
||||||
|
- run:
|
||||||
|
name: Build
|
||||||
|
command: |
|
||||||
|
pushd build-minimal
|
||||||
|
make -j4 all
|
||||||
|
popd
|
||||||
|
- run:
|
||||||
|
name: Run unit tests
|
||||||
|
command: |
|
||||||
|
pushd build-minimal
|
||||||
|
make tests
|
||||||
|
popd
|
||||||
# Build using ubuntu LTS
|
# Build using ubuntu LTS
|
||||||
# This build is dynamic, most dependencies are taken from the OS
|
# This build is dynamic, most dependencies are taken from the OS
|
||||||
"build/ubuntu-focal":
|
"build/ubuntu-focal":
|
||||||
@ -460,6 +492,7 @@ workflows:
|
|||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- "build/musl"
|
- "build/musl"
|
||||||
|
- "build/minimal"
|
||||||
- "build/ubuntu-focal"
|
- "build/ubuntu-focal"
|
||||||
- "build/ubuntu-focal-debug"
|
- "build/ubuntu-focal-debug"
|
||||||
- "build/ubuntu-bionic"
|
- "build/ubuntu-bionic"
|
||||||
|
Loading…
Reference in New Issue
Block a user