Skip to content

Commit e4c6481

Browse files
committed
using zipped build for dls2_msgs in cicd
1 parent 916ee65 commit e4c6481

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/scripts/install_dls2_msgs.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ echo "Found release tag: $TAG"
5151
mkdir -p "$DOWNLOAD_DIR"
5252
gh release download "$TAG" \
5353
--repo "$REPO" \
54-
--pattern "*" \
54+
--pattern "build.tar.gz" \
5555
--dir "$DOWNLOAD_DIR" \
5656
--clobber
5757

5858
echo "Downloaded assets:"
5959
ls -lR "$DOWNLOAD_DIR"
6060

61-
# Run cmake --install on the downloaded build directory to install headers and
61+
# Extract the build tarball
62+
BUILD_DIR="${DOWNLOAD_DIR}/build"
63+
mkdir -p "$BUILD_DIR"
64+
tar -xzf "${DOWNLOAD_DIR}/build.tar.gz" -C "$BUILD_DIR"
65+
66+
# Run cmake --install on the extracted build directory to install headers and
6267
# libraries to the standard system paths (/usr/include/dls_messages, /usr/lib/dls2, etc.)
63-
if [ -d "${DOWNLOAD_DIR}/build" ]; then
64-
echo "Running cmake --install..."
65-
cmake --install "${DOWNLOAD_DIR}/build"
66-
echo "dls2_msgs installed successfully."
67-
else
68-
echo "::warning::Expected 'build/' directory not found in downloaded assets. Contents:"
69-
find "$DOWNLOAD_DIR" -maxdepth 3
70-
fi
68+
echo "Running cmake --install..."
69+
cmake --install "$BUILD_DIR"
70+
echo "dls2_msgs installed successfully."

0 commit comments

Comments
 (0)