mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-21 07:43:27 +00:00
new(ci): add optional input to reusable_build_packages workflow to enable jemalloc or mimalloc.
Enable mimalloc in all CIs but release CI (keep it with jemalloc for now). Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
6a4fa5dfce
commit
e13e384d37
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -27,6 +27,7 @@ jobs:
|
|||||||
version: ${{ needs.fetch-version.outputs.version }}
|
version: ${{ needs.fetch-version.outputs.version }}
|
||||||
enable_debug: true
|
enable_debug: true
|
||||||
enable_sanitizers: true
|
enable_sanitizers: true
|
||||||
|
use_mimalloc: true
|
||||||
|
|
||||||
build-dev-packages-arm64:
|
build-dev-packages-arm64:
|
||||||
needs: [fetch-version]
|
needs: [fetch-version]
|
||||||
@ -35,6 +36,7 @@ jobs:
|
|||||||
arch: aarch64
|
arch: aarch64
|
||||||
version: ${{ needs.fetch-version.outputs.version }}
|
version: ${{ needs.fetch-version.outputs.version }}
|
||||||
enable_debug: true
|
enable_debug: true
|
||||||
|
use_mimalloc: true
|
||||||
|
|
||||||
test-dev-packages:
|
test-dev-packages:
|
||||||
needs: [fetch-version, build-dev-packages-x86_64]
|
needs: [fetch-version, build-dev-packages-x86_64]
|
||||||
|
2
.github/workflows/master.yaml
vendored
2
.github/workflows/master.yaml
vendored
@ -18,6 +18,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
version: ${{ needs.fetch-version.outputs.version }}
|
version: ${{ needs.fetch-version.outputs.version }}
|
||||||
|
use_mimalloc: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build-dev-packages-arm64:
|
build-dev-packages-arm64:
|
||||||
@ -26,6 +27,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
version: ${{ needs.fetch-version.outputs.version }}
|
version: ${{ needs.fetch-version.outputs.version }}
|
||||||
|
use_mimalloc: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
test-dev-packages:
|
test-dev-packages:
|
||||||
|
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -56,6 +56,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
version: ${{ github.event.release.tag_name }}
|
version: ${{ github.event.release.tag_name }}
|
||||||
|
use_jemalloc: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build-packages-arm64:
|
build-packages-arm64:
|
||||||
@ -64,6 +65,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
version: ${{ github.event.release.tag_name }}
|
version: ${{ github.event.release.tag_name }}
|
||||||
|
use_jemalloc: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
test-packages:
|
test-packages:
|
||||||
|
20
.github/workflows/reusable_build_packages.yaml
vendored
20
.github/workflows/reusable_build_packages.yaml
vendored
@ -20,6 +20,16 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
use_jemalloc:
|
||||||
|
description: Use jemalloc memory allocator
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
use_mimalloc:
|
||||||
|
description: Use mimalloc memory allocator
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -88,7 +98,8 @@ jobs:
|
|||||||
-DMODERN_BPF_SKEL_DIR=/tmp \
|
-DMODERN_BPF_SKEL_DIR=/tmp \
|
||||||
-DBUILD_DRIVER=Off \
|
-DBUILD_DRIVER=Off \
|
||||||
-DBUILD_BPF=Off \
|
-DBUILD_BPF=Off \
|
||||||
-DUSE_JEMALLOC=ON \
|
-DUSE_JEMALLOC=${{ inputs.use_jemalloc }} \
|
||||||
|
-DUSE_MIMALLOC=${{ inputs.use_mimalloc }} \
|
||||||
-DFALCO_VERSION=${{ inputs.version }}
|
-DFALCO_VERSION=${{ inputs.version }}
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
@ -160,7 +171,8 @@ jobs:
|
|||||||
-DMODERN_BPF_SKEL_DIR=/tmp \
|
-DMODERN_BPF_SKEL_DIR=/tmp \
|
||||||
-DBUILD_DRIVER=Off \
|
-DBUILD_DRIVER=Off \
|
||||||
-DBUILD_BPF=Off \
|
-DBUILD_BPF=Off \
|
||||||
-DUSE_JEMALLOC=On \
|
-DUSE_JEMALLOC=${{ inputs.use_jemalloc }} \
|
||||||
|
-DUSE_MIMALLOC=${{ inputs.use_mimalloc }} \
|
||||||
-DFALCO_VERSION=${{ inputs.version }}
|
-DFALCO_VERSION=${{ inputs.version }}
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
@ -209,6 +221,7 @@ jobs:
|
|||||||
-DBUILD_DRIVER=Off \
|
-DBUILD_DRIVER=Off \
|
||||||
-DBUILD_BPF=Off \
|
-DBUILD_BPF=Off \
|
||||||
-DUSE_JEMALLOC=Off \
|
-DUSE_JEMALLOC=Off \
|
||||||
|
-DUSE_MIMALLOC=Off \
|
||||||
-DUSE_ASAN=On \
|
-DUSE_ASAN=On \
|
||||||
-DFALCO_VERSION=${{ inputs.version }}
|
-DFALCO_VERSION=${{ inputs.version }}
|
||||||
|
|
||||||
@ -253,7 +266,8 @@ jobs:
|
|||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCPACK_GENERATOR=TGZ \
|
-DCPACK_GENERATOR=TGZ \
|
||||||
-DBUILD_BPF=Off -DBUILD_DRIVER=Off \
|
-DBUILD_BPF=Off -DBUILD_DRIVER=Off \
|
||||||
-DUSE_JEMALLOC=On \
|
-DUSE_JEMALLOC=${{ inputs.use_jemalloc }} \
|
||||||
|
-DUSE_MIMALLOC=${{ inputs.use_mimalloc }} \
|
||||||
-DUSE_BUNDLED_DEPS=On \
|
-DUSE_BUNDLED_DEPS=On \
|
||||||
-DMUSL_OPTIMIZED_BUILD=On \
|
-DMUSL_OPTIMIZED_BUILD=On \
|
||||||
-DFALCO_ETC_DIR=/etc/falco \
|
-DFALCO_ETC_DIR=/etc/falco \
|
||||||
|
Loading…
Reference in New Issue
Block a user