File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Reusable CI Workflow
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ os :
7+ description : " The OS to use for the workflow"
8+ required : true
9+ type : string
10+ branch :
11+ description : " The branch to use for the workflow"
12+ required : true
13+ type : string
14+
15+ jobs :
16+ build :
17+ runs-on : ${{ inputs.os }}
18+ strategy :
19+ fail-fast : false
20+ steps :
21+ - name : Install dependencies
22+ run : |
23+ sudo apt-get update
24+ sudo apt-get install -y git build-essential
25+
26+ - name : Setup python
27+ uses : actions/setup-python@v6
28+ with :
29+ python-version : ' 3.12'
30+
31+ - name : Install required python packages
32+ run : |
33+ sudo apt install python3.12-venv
34+ python3 -m venv .venv
35+ source .venv/bin/activate
36+ pip3 install catkin_pkg lark-parser empy colcon-common-extensions
37+
38+ - name : Sync repository
39+ uses : actions/checkout@v5
40+ with :
41+ ref : ${{ inputs.branch }}
42+ submodules : recursive
43+ - name : Build project
44+ run : |
45+
46+
47+
48+
49+
50+
Original file line number Diff line number Diff line change @@ -139,8 +139,10 @@ popd > /dev/null
139139
140140apt -y install rsync
141141for var in ${INCLUDE_ROS2_PACKAGES} ; do
142- rsync -r $INSTALL_DIR /include/${var} /${var} /* $INSTALL_DIR /include/${var} /
143- rm -rf $INSTALL_DIR /include/${var} /${var} /
142+ if [ -d $INSTALL_DIR /include/${var} /${var} / ]; then
143+ rsync -r $INSTALL_DIR /include/${var} /${var} /* $INSTALL_DIR /include/${var} /
144+ rm -rf $INSTALL_DIR /include/${var} /${var} /
145+ fi
144146done
145147
146148# Print compiler info
You can’t perform that action at this time.
0 commit comments