Skip to content

Commit e023ea4

Browse files
committed
Fix rsync errors
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
1 parent 8b105ed commit e023ea4

2 files changed

Lines changed: 54 additions & 2 deletions

File tree

.github/workflows/reusable-ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+

microros/generate_microros_library.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ popd > /dev/null
139139

140140
apt -y install rsync
141141
for 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
144146
done
145147

146148
# Print compiler info

0 commit comments

Comments
 (0)