ashutoshvarma / action-cmake-build

Github action for cmake based projects
MIT License
24 stars 10 forks source link

Additional configation arguments with variables #230

Open RGuezennec opened 2 years ago

RGuezennec commented 2 years ago

I want to invoke cmake with some custom arguments (mainly to manage Qt). I tried that and several variation with double quotes, one or two {. Nothing seems to work. The additional args are not added to the cmake command.

configure-options: -DTest=ON -DQT_QMAKE_EXECUTABLE=${{GITHUB_WORKSPACE}}/path/to/qmake

If I remove the part with variable it works.

configure-options: -DTest=ON -DQT_QMAKE_EXECUTABLE=foo

Is there a way to do it ?

(I'm running for the moment into "act", a standalone environment to test my workflow before testing it on github)