-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.sh
executable file
·38 lines (29 loc) · 984 Bytes
/
main.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023, Robert Haschke
ici_setup_vars "${VERBOSE:-}" "${DEFAULT_QUIET_CONFIG[@]}"
if [ "$CONTINUE_FROM_PKG" == "DONE" ]; then
gha_report_result "LATEST_PACKAGE" "DONE"
ici_log "$(ici_colorize GREEN "Skipping build stage (already done)")"
ici_exit 0
elif [ "$CONTINUE_FROM_PKG" != "" ]; then
COLCON_PKG_SELECTION="$COLCON_PKG_SELECTION --packages-start $CONTINUE_FROM_PKG"
fi
ici_start_fold "Variables"
cat <<EOF
ROS_DISTRO=$ROS_DISTRO
DEB_DISTRO=$DEB_DISTRO
ROS_SOURCES=$ROS_SOURCES
COLCON_PKG_SELECTION=$COLCON_PKG_SELECTION
EXTRA_DEB_SOURCES=$EXTRA_DEB_SOURCES
EXTRA_ROSDEP_SOURCES=$EXTRA_ROSDEP_SOURCES
EXTRA_SBUILD_CONFIG=$EXTRA_SBUILD_CONFIG
CONTINUE_ON_ERROR=$CONTINUE_ON_ERROR
DEBS_PATH=$DEBS_PATH
DEBUG_BASH=$DEBUG_BASH
EOF
ici_end_fold
# shellcheck source=src/scripts/prepare.sh
source "${SRC_PATH}/scripts/prepare.sh"
# shellcheck source=src/scripts/build.sh
source "${SRC_PATH}/scripts/build.sh"