aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/build_cmake.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build_cmake.yml')
-rw-r--r--.github/workflows/build_cmake.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index 202c71a50d..42254415db 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -82,8 +82,11 @@ jobs:
# Add to PATH environment variable
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/${cmake_dir}" cmake_dir)
- message("::add-path::$ENV{GITHUB_WORKSPACE}")
- message("::add-path::${cmake_dir}")
+ set(path_separator ":")
+ if ("${{ runner.os }}" STREQUAL "Windows")
+ set(path_separator ";")
+ endif()
+ file(APPEND "$ENV{GITHUB_PATH}" "$ENV{GITHUB_WORKSPACE}${path_separator}${cmake_dir}")
if (NOT "${{ runner.os }}" STREQUAL "Windows")
execute_process(