Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vinca/generate_gha.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def build_win_pipeline(stages, trigger_branch, outfile="win.yml", azure_template
"runs-on": vm_imagename,
"strategy": {"fail-fast": False},
"needs": prev_batch_keys,
"env": {"CONDA_BLD_PATH": "C:\\\\bld\\\\"},
"env": [{"CONDA_BLD_PATH": "C:\\\\bld\\\\"},{"VINCA_CUSTOM_CMAKE_BUILD_DIR": "C:\\\\x\\\\"}],
"steps": [
{"name": "Checkout code", "uses": "actions/checkout@v6"},
{
Expand Down
5 changes: 5 additions & 0 deletions vinca/templates/bld_ament_cmake.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"
set CC=cl.exe
set CXX=cl.exe

:: If defined, can use a custom CMake build directory which can be useful
:: to avoid too long path problems on windows
if defined VINCA_CUSTOM_CMAKE_BUILD_DIR (
cd /d "%VINCA_CUSTOM_CMAKE_BUILD_DIR%"
)
rd /s /q build
mkdir build
pushd build
Expand Down
3 changes: 3 additions & 0 deletions vinca/templates/build_ament_cmake.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -eo pipefail

if [[ -n "$VINCA_CUSTOM_CMAKE_BUILD_DIR" ]]; then
cd "$VINCA_CUSTOM_CMAKE_BUILD_DIR"
fi
rm -rf build
mkdir build
cd build
Expand Down
Loading