Skip to content

Commit

Permalink
Refs #21886: Share volume dirs from D:/ to C:/
Browse files Browse the repository at this point in the history
Signed-off-by: Mario-DL <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Nov 7, 2024
1 parent 7673b74 commit 0695f15
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/reusable-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
vcs_repos_file: ${{ github.workspace }}\src\fastdds\.github\workflows\config\fastdds_test.repos
destination_workspace: src
skip_existing: 'true'

- name: Install VCTools for Dumpbin
shell: pwsh
run:
Expand All @@ -156,7 +156,9 @@ jobs:
workspace: ${{ github.workspace }}

- name: Run Dumpbin
"& C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\dumpbin.exe ${{ github.workspace }}\build\fastdds\examples\cpp\hello_world\Release\hello_world.exe"
shell: pwsh
run:
C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\dumpbin.exe ${{ github.workspace }}\build\fastdds\examples\cpp\hello_world\Release\hello_world.exe

- name: Test
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
Expand Down
4 changes: 4 additions & 0 deletions test/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ elseif(WIN32)

# Temporary, in the is installed here
set(SHELL_EXECUTABLE "C:/Program Files/PowerShell/latest/pwsh.exe")
set(CMAKE_INSTALL_PREFIX_C "C:/a/Fast-DDS/Fast-DDS/install/fastdds")
set(PROJECT_BINARY_DIR_C "C:/a/Fast-DDS/Fast-DDS/build/fastdds")

set(FILE_EXTENSION ".exe")
set(DOCKER_IMAGE_NAME "windows-testing")

cmake_path(GET fastcdr_LIB_DIR PARENT_PATH fastcdr_INSTALL_DIR)

set(fastcdr_INSTALL_DIR_C "C:/a/Fast-DDS/Fast-DDS/install/fastcdr")

set(WIN_DOCKERFILE ${CMAKE_CURRENT_LIST_DIR}/windows/Dockerfile)

message(STATUS "PROJECT_BINARY_DIR ${PROJECT_BINARY_DIR}")
Expand Down
16 changes: 8 additions & 8 deletions test/examples/hello_world.compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ services:
waitset-subscriber:
image: @DOCKER_IMAGE_NAME@
volumes:
- @PROJECT_BINARY_DIR@:@PROJECT_BINARY_DIR@
- @PROJECT_BINARY_DIR@:@PROJECT_BINARY_DIR_C@
environment:
PATH: C:/Program Files/OpenSSL-Win64;@CMAKE_INSTALL_PREFIX@/bin;@fastcdr_INSTALL_DIR@/bin;C:/Windows/System32;C:/Windows/System32/downlevel;
EXAMPLE_DIR: @PROJECT_BINARY_DIR@/examples/cpp/hello_world/RelWithDebInfo
FASTDDS_DEFAULT_PROFILES_FILE: @PROJECT_BINARY_DIR@/examples/cpp/hello_world/hello_world_profile.xml
PATH: C:/Program Files/OpenSSL-Win64;@CMAKE_INSTALL_PREFIX_C@/bin;@fastcdr_INSTALL_DIR_C@/bin;C:/Windows/System32;C:/Windows/System32/downlevel;
EXAMPLE_DIR: @PROJECT_BINARY_DIR_C@/examples/cpp/hello_world/RelWithDebInfo
FASTDDS_DEFAULT_PROFILES_FILE: @PROJECT_BINARY_DIR_C@/examples/cpp/hello_world/hello_world_profile.xml
command: @SHELL_EXECUTABLE@ -c "& ls;echo "Testing STDOUT";"

subscriber-publisher:
image: @DOCKER_IMAGE_NAME@
volumes:
- @PROJECT_BINARY_DIR@:@PROJECT_BINARY_DIR@
- @PROJECT_BINARY_DIR@:@PROJECT_BINARY_DIR_C@
environment:
PATH: C:/Program Files/OpenSSL-Win64;@CMAKE_INSTALL_PREFIX@/bin;@fastcdr_INSTALL_DIR@/bin;C:/Windows/System32;C:/Windows/System32/downlevel;
EXAMPLE_DIR: @PROJECT_BINARY_DIR@/examples/cpp/hello_world/RelWithDebInfo
FASTDDS_DEFAULT_PROFILES_FILE: @PROJECT_BINARY_DIR@/examples/cpp/hello_world/hello_world_profile.xml
PATH: C:/Program Files/OpenSSL-Win64;@CMAKE_INSTALL_PREFIX_C@/bin;@fastcdr_INSTALL_DIR_C@/bin;C:/Windows/System32;C:/Windows/System32/downlevel;
EXAMPLE_DIR: @PROJECT_BINARY_DIR_C@/examples/cpp/hello_world/RelWithDebInfo
FASTDDS_DEFAULT_PROFILES_FILE: @PROJECT_BINARY_DIR_C@/examples/cpp/hello_world/hello_world_profile.xml
command: @SHELL_EXECUTABLE@ -c "& ls;echo "Testing STDOUT";"
depends_on:
- waitset-subscriber

0 comments on commit 0695f15

Please sign in to comment.