efog-r/Build a CMake project

Checkout and build a CMake-based project on Linux or macOS, with optional OSP-style patching and wolfSSL user_settings.h injection. CMake analog of wolfSSL/actions-build-autotools-project.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 12, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: efog-r/actions-build-cmake-project@6f196b0aa45150ba566dff269c08fd375bfef6fe # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
repositoryRepository name with owner. Defaults to the calling workflow repository.
refThe git reference to checkout.
pathCheckout directory (also used as the working directory for build steps)..
cmake-argsArguments passed to the initial cmake configure step. For example: "-DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release".""
build-targetBuild target for `cmake --build`. Empty means build the default target.""
testRun `ctest` after build.true
installRun `cmake --install` after build. By default installs to $GITHUB_WORKSPACE/build-dir.false
install-prefixCMake install prefix (passed as -DCMAKE_INSTALL_PREFIX). Defaults to $GITHUB_WORKSPACE/build-dir.""
patch-filePatch file to apply in the checkout directory before configuring. Intended for wolfSSL OSP-style ports. If empty, no patch is applied.
user-settingsPath to a user_settings.h file to copy into the checkout directory before configure. If empty, no file is copied.""

no outputs