Skip to content

Commit dd841b9

Browse files
committed
chore(ci): check linked glibc version on zig.
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent b4a2497 commit dd841b9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,19 @@ jobs:
7676
KERNELDIR=/lib/modules/$(ls /lib/modules)/build make -j4
7777
make run-unit-tests
7878
79+
# On zig, build also sinsp-example and check the glibc linked versions
80+
# to make sure we are actually using the correct glibc version.
81+
- name: Test zig build glibc version
82+
if: matrix.name == 'zig'
83+
run: |
84+
cd build
85+
objdump -T libsinsp/test/unit-test-libsinsp | grep -Eo 'GLIBC_\S+' | sort -u -t "." -k1,1n -k2,2n -k3,3n
86+
linked_glibc=$(objdump -T libsinsp/test/unit-test-libsinsp | grep -Eo 'GLIBC_\S+' | sort -u -t "." -k1,1n -k2,2n -k3,3n | tail -n1 | tr -d ')')
87+
if [ "$linked_glibc" != "GLIBC_2.17" ]; then
88+
echo "Expected glibc 2.17; found $linked_glibc"
89+
exit 1
90+
fi
91+
7992
build-libs-linux-amd64-static:
8093
name: build-libs-linux-amd64-static 🎃
8194
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)