Skip to content

Commit

Permalink
debug actions true/false
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <luca@guerra.sh>
  • Loading branch information
LucaGuerra committed Mar 26, 2024
1 parent b4d7df7 commit 2d1739e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ jobs:
with:
arch: x86_64
version: ${{ needs.fetch-version.outputs.version }}
sanitizers: 'true'

build-dev-packages-arm64:
needs: [fetch-version]
uses: ./.github/workflows/reusable_build_packages.yaml
with:
arch: aarch64
version: ${{ needs.fetch-version.outputs.version }}
sanitizers: 'true'

test-dev-packages:
needs: [fetch-version, build-dev-packages]
Expand Down Expand Up @@ -84,6 +82,7 @@ jobs:
arch: x86_64
git_ref: ${{ github.event.pull_request.head.sha }}
minimal: false
sanitizers: true
build_type: Debug
cmd: "echo $(build/userspace/falco/falco -c ./falco.yaml --version | grep 'Engine:' | awk '{print $2}') $(echo $(build/userspace/falco/falco -c ./falco.yaml --version | grep 'Schema version:' | awk '{print $3}') $(build/userspace/falco/falco -c ./falco.yaml --list --markdown | grep '^`' | sort) $(build/userspace/falco/falco -c ./falco.yaml --list-events | sort) | sha256sum)"

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable_build_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
description: Minimal build
required: true
type: boolean
sanitizers:
description: Enable sanitizer support
required: true
type: boolean
build_type:
description: One of 'Debug' or 'Release'
required: true
Expand Down Expand Up @@ -59,6 +63,8 @@ jobs:
-DBUILD_BPF=${{ inputs.minimal == true && 'OFF' || 'ON' }} \
-DBUILD_DRIVER=${{ inputs.minimal == true && 'OFF' || 'ON' }} \
-DMINIMAL_BUILD=${{ inputs.minimal == true && 'ON' || 'OFF' }} \
-DUSE_ASAN=${{ inputs.sanitizers == true && 'ON' || 'OFF' }} \
-DUSE_UBSAN=${{ inputs.sanitizers == true && 'ON' || 'OFF' }} \
-DUSE_BUNDLED_DEPS=Off \
-DUSE_BUNDLED_NLOHMANN_JSON=On \
-DUSE_BUNDLED_CXXOPTS=On \
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/reusable_build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
curl -L https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-linux-$(uname -m).tar.gz \
| tar --directory=/usr --strip-components=1 -xzp
- name: Check sanitizer value
run: echo "${{ inputs.sanitizers }}"

- name: Prepare project
run: |
source /opt/rh/devtoolset-9/enable
Expand All @@ -83,7 +86,7 @@ jobs:
-DMODERN_BPF_SKEL_DIR=/tmp \
-DBUILD_DRIVER=Off \
-DBUILD_BPF=Off \
${{ (inputs.sanitizers == 'true' && '-DUSE_ASAN=On -DUSE_UBSAN=On' || '' ) }} \
${{ (inputs.sanitizers == true && '-DUSE_ASAN=On -DUSE_UBSAN=On') || '' }} \
-DFALCO_VERSION=${{ inputs.version }}
- name: Build project
Expand Down

0 comments on commit 2d1739e

Please sign in to comment.