Skip to content

Commit 26697c6

Browse files
committed
create-deb-deploy: refreshing step added when build is provided
1 parent e5386ad commit 26697c6

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

scripts/create-deb-deploy.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,19 @@ run_pipeline() {
149149

150150
if [[ "${reuse_existing_build}" == "1" ]]; then
151151
echo "[build] reusing existing build directory: ${build_dir}"
152+
echo "[build] refreshing generated install files and source-tree outputs for this workspace"
152153
else
153154
echo "[build] configuring and compiling in: ${build_dir}"
154-
cmake -S "${ROOT_DIR}" -B "${build_dir}" -DCMAKE_BUILD_TYPE=Release \
155-
-DCMAKE_INSTALL_PREFIX=/ \
156-
"${cmake_user_args[@]}"
157-
158-
if [[ "${BUILD_VERBOSE}" == "1" ]]; then
159-
cmake --build "${build_dir}" -- "${build_user_args[@]}" --verbose
160-
else
161-
cmake --build "${build_dir}" -- "${build_user_args[@]}"
162-
fi
155+
fi
156+
157+
cmake -S "${ROOT_DIR}" -B "${build_dir}" -DCMAKE_BUILD_TYPE=Release \
158+
-DCMAKE_INSTALL_PREFIX=/ \
159+
"${cmake_user_args[@]}"
160+
161+
if [[ "${BUILD_VERBOSE}" == "1" ]]; then
162+
cmake --build "${build_dir}" -- "${build_user_args[@]}" --verbose
163+
else
164+
cmake --build "${build_dir}" -- "${build_user_args[@]}"
163165
fi
164166

165167
DESTDIR="${base_stage_dir}" cmake --install "${build_dir}"

0 commit comments

Comments
 (0)