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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 12, 2026
- License
- MIT
Pinned Snippet
uses: efog-r/actions-build-cmake-project@6f196b0aa45150ba566dff269c08fd375bfef6fe # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Repository name with owner. Defaults to the calling workflow repository. | — | — |
| ref | The git reference to checkout. | — | — |
| path | Checkout directory (also used as the working directory for build steps). | — | . |
| cmake-args | Arguments passed to the initial cmake configure step. For example: "-DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release". | — | "" |
| build-target | Build target for `cmake --build`. Empty means build the default target. | — | "" |
| test | Run `ctest` after build. | — | true |
| install | Run `cmake --install` after build. By default installs to $GITHUB_WORKSPACE/build-dir. | — | false |
| install-prefix | CMake install prefix (passed as -DCMAKE_INSTALL_PREFIX). Defaults to $GITHUB_WORKSPACE/build-dir. | — | "" |
| patch-file | Patch file to apply in the checkout directory before configuring. Intended for wolfSSL OSP-style ports. If empty, no patch is applied. | — | — |
| user-settings | Path to a user_settings.h file to copy into the checkout directory before configure. If empty, no file is copied. | — | "" |
Outputs
no outputs