Skip to content

Commit

Permalink
workflows: pr-compile-check.yaml: improve the system libraries test
Browse files Browse the repository at this point in the history
- added a install system libraries step

To make it clear that this is part of the test.

- assert the linked system libs

Check if the system lib is effectively linked as expected.

Signed-off-by: Thomas Devoogdt <[email protected]>
  • Loading branch information
ThomasDevoogdt committed Jan 10, 2025
1 parent 77d67ab commit a7a4518
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/pr-compile-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install -y curl gcc-7 g++-7 clang-6.0 libsystemd-dev gcovr libyaml-dev libluajit-5.1-dev \
libnghttp2-dev libjemalloc-dev libsqlite3-dev
sudo apt-get install -y curl gcc-7 g++-7 clang-6.0 libsystemd-dev gcovr libyaml-dev
sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer || true
- name: Install system libraries for this test
run: |
sudo apt-get update
sudo apt-get install -y libjemalloc-dev libluajit-5.1-dev libnghttp2-dev libsqlite3-dev
mkdir -p /tmp/libbacktrace/build && \
curl -L https://github.com/ianlancetaylor/libbacktrace/archive/8602fda.tar.gz | \
tar --strip-components=1 -xzC /tmp/libbacktrace/ && \
Expand All @@ -76,5 +80,11 @@ jobs:

- name: Display dependencies w/ ldd
run: |
ldd ./bin/fluent-bit
export ldd_result=$(ldd ./bin/fluent-bit)
echo "ldd result:"
echo "$ldd_result"
echo "$ldd_result" | grep libjemalloc
echo "$ldd_result" | grep libluajit
echo "$ldd_result" | grep libnghttp2
echo "$ldd_result" | grep libsqlite3
working-directory: build

0 comments on commit a7a4518

Please sign in to comment.