mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-04-09 21:33:24 +00:00
add .so build step
This commit is contained in:
parent
303e6a737e
commit
d660b3c238
33
.github/workflows/test_common.yml
vendored
33
.github/workflows/test_common.yml
vendored
@ -107,10 +107,41 @@ jobs:
|
||||
iproute2 \
|
||||
sudo \
|
||||
ca-certificates \
|
||||
curl
|
||||
curl \
|
||||
make \
|
||||
gcc \
|
||||
g++
|
||||
|
||||
- run: pip install -r requirements.txt
|
||||
|
||||
- name: Build liblogosdelivery.so for python bindings
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
BINDINGS_DIR="$(pwd)/vendor/logos-delivery-python-bindings"
|
||||
DELIVERY_DIR="$BINDINGS_DIR/vendor/logos-delivery"
|
||||
|
||||
mkdir -p "$BINDINGS_DIR/lib"
|
||||
|
||||
cd "$DELIVERY_DIR"
|
||||
make liblogosdelivery
|
||||
|
||||
SO_PATH="$(find . -type f -name 'liblogosdelivery.so' | head -n 1)"
|
||||
|
||||
if [ -z "$SO_PATH" ]; then
|
||||
echo "liblogosdelivery.so was not built"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp "$SO_PATH" "$BINDINGS_DIR/lib/liblogosdelivery.so"
|
||||
|
||||
echo "Built library:"
|
||||
ls -l "$BINDINGS_DIR/lib/liblogosdelivery.so"
|
||||
|
||||
- name: Verify wrapper library
|
||||
run: |
|
||||
test -f vendor/logos-delivery-python-bindings/lib/liblogosdelivery.so
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
export PYTHONPATH="$(pwd)/vendor/logos-delivery-python-bindings/waku:$PYTHONPATH"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user