Does GitHub Actions override my compilation options? #26888
-
When I added |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
It really shouldn’t, but could you share how the options are set and a workflow log? Maybe there is some odd twist. 🙂 |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. I just discovered that my ‘windows’ run on Microsoft Windows Server 2019 but compile with GNU 8.1.0. How is it possible ? GNU is only Linux compiler, no ? unit_tests.yml
How can I change my workflow to compile with MSVC on Windows and with GCC on Linux ? |
Beta Was this translation helpful? Give feedback.
-
GCC is available for many platforms, including Windows. Using it would explain why MSVC compiler options are ignored. 🙂 Or does the Linux build seem to ignore the options, too? Your workflow doesn’t seem to explicitly configure a specific compiler, so I assume you should check how to configure a preference in CMake. |
Beta Was this translation helpful? Give feedback.
-
Thanks for information. Do I need to configure a preference in CMake or just configure the compiler in the workflow ? I will check it soon as possible. |
Beta Was this translation helpful? Give feedback.
-
matthieuhernandez:
I’m not sure about CMake specifically, but a common thing on Linux is to set the C compiler via the
matthieuhernandez:
The current version of the |
Beta Was this translation helpful? Give feedback.
GCC is available for many platforms, including Windows. Using it would explain why MSVC compiler options are ignored. 🙂 Or does the Linux build seem to ignore the options, too?
Your workflow doesn’t seem to explicitly configure a specific compiler, so I assume you should check how to configure a preference in CMake.