-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: include regression tests in master's CI
Signed-off-by: Jason Dellaluce <[email protected]>
- Loading branch information
1 parent
693f380
commit 96eac0d
Showing
3 changed files
with
110 additions
and
87 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This is a reusable workflow used by master and release CI | ||
on: | ||
workflow_call: | ||
outputs: | ||
version: | ||
description: "Falco version" | ||
value: ${{ jobs.fetch-version.outputs.version }} | ||
|
||
jobs: | ||
# We need to use an ubuntu-latest to fetch Falco version because | ||
# Falco version is computed by some cmake scripts that do git sorceries | ||
# to get the current version. | ||
# But centos7 jobs have a git version too old and actions/checkout does not | ||
# fully clone the repo, but uses http rest api instead. | ||
fetch-version: | ||
runs-on: ubuntu-latest | ||
# Map the job outputs to step outputs | ||
outputs: | ||
version: ${{ steps.store_version.outputs.version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install build dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y cmake build-essential | ||
- name: Configure project | ||
run: | | ||
mkdir build && cd build | ||
cmake -DUSE_BUNDLED_DEPS=On .. | ||
- name: Load and store Falco version output | ||
id: store_version | ||
run: | | ||
FALCO_VERSION=$(cat build/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') | ||
echo "version=${FALCO_VERSION}" >> $GITHUB_OUTPUT |