forked from qt-creator/qt-creator
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>
This commit is contained in:
7
.github/workflows/build_cmake.yml
vendored
7
.github/workflows/build_cmake.yml
vendored
@@ -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(
|
||||
|
Reference in New Issue
Block a user