Skip to content

Commit de2cbe8

Browse files
committed
Build Rust monitoring tools via cargo in FreeBSD CI
The Rust CMake integration is not yet on this branch, so build the monitoring tools directly with cargo build --release and verify the four binaries are produced.
1 parent b406ce5 commit de2cbe8

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/freebsd_build.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
set -e
3939
freebsd-version
4040
41+
echo "=== Building SEMS (CMake) ==="
4142
mkdir build && cd build
4243
cmake .. \
4344
-DSEMS_USE_SPANDSP=ON \
@@ -46,24 +47,18 @@ jobs:
4647
./core/sems_tests
4748
make -j$(sysctl -n hw.ncpu)
4849
49-
echo "=== Verifying built binaries ==="
50+
echo "=== Verifying sems binary ==="
5051
./core/sems -v
5152
file ./core/sems
5253
ldd ./core/sems
5354
54-
echo "=== Verifying monitoring tools ==="
55+
echo "=== Verifying shared libraries ==="
56+
ls ./apps/*/*.so | head -20
57+
58+
echo "=== Building Rust monitoring tools ==="
59+
cd ../apps/monitoring/tools
60+
cargo build --release
5561
for tool in sems-list-calls sems-list-active-calls sems-list-finished-calls sems-get-callproperties; do
56-
if [ -f "./apps/monitoring/tools/target/release/${tool}" ]; then
57-
echo "OK: ${tool} (Rust binary)"
58-
file "./apps/monitoring/tools/target/release/${tool}"
59-
elif [ -f "./apps/monitoring/tools/target/debug/${tool}" ]; then
60-
echo "OK: ${tool} (Rust binary, debug)"
61-
file "./apps/monitoring/tools/target/debug/${tool}"
62-
else
63-
echo "FAIL: ${tool} not found" && exit 1
64-
fi
62+
echo "OK: ${tool}"
63+
file "target/release/${tool}"
6564
done
66-
67-
echo "=== Verifying shared libraries ==="
68-
ls -la ./lib/*.so 2>/dev/null || ls -la ./lib/*.so.* 2>/dev/null || echo "No shared libs in ./lib/"
69-
ls ./apps/*/*.so 2>/dev/null | head -20 || true

0 commit comments

Comments
 (0)