-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows build environment fails to propagate to CMake external project #643
Comments
Are you able to actually get any Windows builds working using action-ros-ci? I tried to enable a test of that at #630 and failed - maybe I'm missing something. |
It seems to work in some situations (e.g. Python packages and maybe simple C++ packages?), but overall it doesn't work well 😕 |
I was trying to enable windows builds with action-ros-ci too and couldn't get builds to work. I replicated the commands the action calls locally and think i found the issue.
ill try to submit a fix for it |
Yep! I opened #725 for the testing part. |
Description
https://github.com/ament/uncrustify_vendor uses a CMake external project (uncrustify).
Expected Behavior
Builds fine on Windows.
Actual Behavior
Fails to build on Windows. It fails when CMake checks for C and CXX compilers. The vendor CMake project can find the compiler just fine, but the external project cannot.
See: https://github.com/ros2/rmw_cyclonedds/runs/2522103892#step:6:3605
To Reproduce
Build
uncrustify_vendor
on Windows, e.g.For a full example, see
rmw_cyclonedds
's CI config: https://github.com/ros2/rmw_cyclonedds/blob/2bbc260b987523b131fd8f5bbc002d5fc9801e0b/.github/workflows/CI.ymlSystem
Additional context
I think that
action-ros-ci
's Windows build environment might not be correctly set up. We're running some scripts along with each command on Windows (to setup the build environment?), but maybe it doesn't properly propagate:action-ros-ci/src/action-ros-ci.ts
Lines 114 to 133 in 16b8198
I tried to pass
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
and-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
asCMAKE_ARGS
toExternalProject_Add
but it doesn't do much.The text was updated successfully, but these errors were encountered: