0

I configured a GitHub Action with a windows 2022 Server machine, in order to compile a CMake C++ project.

I wish to enable the C++ modules support, but I don't know how to configure the Action workflow in order to modify the VS installation inside the vMachine

Have someone already achieved it?

EDIT: Just for clarifiying, this is not a CMake issue. Is a question about how to configure a GitHub action with a windows-2022 vmachine (provided by GitHub) in order to enable the C++20 modules support.

drescherjm
  • 9,653
  • 5
  • 43
  • 62
Pyzyryab
  • 503
  • 2
  • 12
  • 1
    I believe part of this requires enabling c++20 [https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html](https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html) – drescherjm Jan 10 '22 at 16:01
  • AFAIK CMake doesn't support modules yet... but I might not be up te date... – JHBonarius Jan 10 '22 at 16:02
  • No, is the name of the vmachine provided by Github actions – Pyzyryab Jan 10 '22 at 16:02
  • 1
    Related: [https://stackoverflow.com/questions/57300495/how-to-use-c20-modules-with-cmake](https://stackoverflow.com/questions/57300495/how-to-use-c20-modules-with-cmake) – drescherjm Jan 10 '22 at 16:03
  • I already edited the question triying to clarify the issue – Pyzyryab Jan 10 '22 at 16:04
  • Maybe take a look at [this GitHub repo](https://github.com/stevencpp/cpp_modules). It uses the experimental ninja support for modules with cmake. – JHBonarius Jan 10 '22 at 16:06
  • Please, drescherjm, read this: https://github.com/actions/virtual-environments/issues/3949 – Pyzyryab Jan 10 '22 at 16:08
  • I retracted the comment since I found that there exists a Windows 2022 server version. – drescherjm Jan 10 '22 at 16:09

0 Answers0