lukka / run-cmake

GitHub Action to build C++ applications with CMake (CMakePresets.json), Ninja and vcpkg on GitHub.
MIT License
176 stars 19 forks source link

How to configure only? #43

Closed vadi2 closed 3 years ago

vadi2 commented 3 years ago

I'd like to use the action to generate compile commands - and not run the whole compile process. How can I do that with this action, which'll help cmake take into account all of the dependencies?

lukka commented 3 years ago

@vadi2 if you'd like to use CMake to only generate the project files in the build directory (and skip building), you can set the input buildWithCMake to false. By default, it is true.

vadi2 commented 3 years ago

That makes sense. I forgot one can check action.yml and just scanned the readme.

tobylane commented 5 months ago

Is this still possible? buildWithCMake is gone.

lukka commented 5 months ago

@tobylane yes, take a look to the flowchart: only the presets you set will be run, anything that is not provided is skipped. In your case, provide the configurePreset only, and it will just configure. Note: it is a must to use CMakePresets.json in v10 onward.