Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCPKG_INSTALLATION_ROOT env variable not available #10904

Open
giallu opened this issue Nov 5, 2024 · 1 comment
Open

VCPKG_INSTALLATION_ROOT env variable not available #10904

giallu opened this issue Nov 5, 2024 · 1 comment

Comments

@giallu
Copy link

giallu commented Nov 5, 2024

This documentation:
https://github.com/actions/runner-images/blob/win22/20231023.1/images/win/Windows2022-Readme.md#environment-variables

promises an environment variable VCPKG_INSTALLATION_ROOT. However, when I try to use this in a build step like so:

- name: Configure CMake
  if: runner.os == 'Windows'
  run: cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --toolchain="${{env.VCPKG_INSTALLATION_ROOT}}/scripts/buildsystems/vcpkg.cmake"

The variable seems to be not there. I tried a few variations:

  • ${{env.VCPKG_INSTALLATION_ROOT}}
  • $VCPKG_INSTALLATION_ROOT

Originally posted by @mcourteaux in #6376 (comment)

@giallu
Copy link
Author

giallu commented Nov 5, 2024

I noticed the issue with an Ubuntu 22.04 runner, I double checked with a windows-2019 runner and there it seems to be correctly added to the env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant