Skip to content

Commit

Permalink
try to source ROS install for windows
Browse files Browse the repository at this point in the history
trying to resolve #305

Signed-off-by: Evan Flynn <evanflynn.msu@gmail.com>
  • Loading branch information
flynneva committed Aug 16, 2020
1 parent a2348a6 commit 7c2f5c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/action-ros-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,16 @@ async function run() {
colconCommandPrefix += `source ${ros2SetupPath} && `;
}
}
} else if (isWindows) {
// Windows only supports ROS2
if (targetRos2Distro) {
const ros2SetupPath = `C:\dev\${targetRos2Distro}\local_setup.bat`;
if (fs.existsSync(ros2SetupPath)) {
colconCommandPrefix += `call ${ros2SetupPath} && `;
}
}
}

let colconBuildCmd = `colcon build --event-handlers console_cohesion+ \
--packages-up-to ${packageNameList.join(" ")} \
${extra_options.join(" ")} \
Expand Down

0 comments on commit 7c2f5c1

Please sign in to comment.