aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-10-06 17:34:13 +0200
committerCristian Adam <cristian.adam@qt.io>2020-10-07 08:03:06 +0000
commit7ffbfa817ea80898412d975f853759def9775f1a (patch)
tree7ecbb59b95ec4e5efc09a745140a5569add0a263 /.github
parent30e696218dddc4750aae8c5e375b054dfa65d1b0 (diff)
GitHub Actions: Make use of GitHub Environment Variables
See https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Change-Id: I520da0751fbf4a6b0db7df68696ed72190093803 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to '.github')
-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(