Skip to content

Commit 216d6a9

Browse files
Copilotpattacini
andauthored
Fix Windows CI failure by ensuring yarpParamParserGenerator is in PATH during configuration (#1042)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pattacini <3738070+pattacini@users.noreply.github.com>
1 parent 169e1e9 commit 216d6a9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ jobs:
152152
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install ..
153153
cmake --build . --config ${{ matrix.build_type }} --target install
154154
155+
- name: Extend Path
156+
shell: bash
157+
run: |
158+
echo "${{ github.workspace }}/install/bin" >> $GITHUB_PATH
159+
echo "${{ github.workspace }}/install/lib/yarp" >> $GITHUB_PATH
160+
# Fix for using YARP idl generators (that link ACE) in Windows (https://github.com/robotology/idyntree/issues/569)
161+
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
162+
echo "${VCPKG_INSTALLATION_ROOT}/installed/x64-windows/bin" >> $GITHUB_PATH
163+
fi
164+
155165
# ===================
156166
# CMAKE-BASED PROJECT
157167
# ===================
@@ -189,14 +199,6 @@ jobs:
189199
# Enable ICUB_COMPILE_BINDINGS in Ubuntu
190200
cmake -DICUB_COMPILE_BINDINGS:BOOL=ON -DCREATE_PYTHON:BOOL=ON .
191201
192-
- name: Extend Path
193-
shell: bash
194-
run: |
195-
echo "${{ github.workspace }}/install/bin" >> $GITHUB_PATH
196-
echo "${{ github.workspace }}/install/lib/yarp" >> $GITHUB_PATH
197-
# Fix for using YARP idl generators (that link ACE) in Windows (https://github.com/robotology/idyntree/issues/569)
198-
echo "${VCPKG_INSTALLATION_ROOT}/installed/x64-windows/bin" >> $GITHUB_PATH
199-
200202
- name: Build
201203
shell: bash
202204
run: |

0 commit comments

Comments
 (0)