From 5cbe8341e4625858bea359a5882f83ff2556626c Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 29 Mar 2023 19:26:29 +0200 Subject: [PATCH] fix: CI requires the cdylibs --- .github/workflows/build_and_test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index d50a42d83c..32a7f7e462 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -260,6 +260,16 @@ jobs: cp "$SRC" "$DST" done + cdylibs=$( + ${cov_prefix} cargo metadata $CARGO_FEATURES --format-version=1 --no-deps | + jq -r '.packages[].targets[] | select(.kind | index("cdylib")) | .name' + ) + for lib in $cdylibs; do + SRC=target/$BUILD_TYPE/$lib.so + DST=/tmp/neon/bin/$lib.so + cp "$SRC" "$DST" + done + # Install test executables and write list of all binaries (for code coverage) if [[ $BUILD_TYPE == "debug" ]]; then # Keep bloated coverage data files away from the rest of the artifact