{"id":16897182,"url":"https://github.com/widgetii/cmake","last_synced_at":"2025-03-20T11:17:22.479Z","repository":{"id":137308449,"uuid":"242367397","full_name":"widgetii/cmake","owner":"widgetii","description":"Github action for CMake","archived":false,"fork":false,"pushed_at":"2020-02-22T15:48:24.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T11:29:41.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/widgetii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-22T15:47:16.000Z","updated_at":"2020-03-08T01:12:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"05bc4fdb-883b-4821-ba44-920d44e99fc4","html_url":"https://github.com/widgetii/cmake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widgetii%2Fcmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widgetii%2Fcmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widgetii%2Fcmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widgetii%2Fcmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/widgetii","download_url":"https://codeload.github.com/widgetii/cmake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244600725,"owners_count":20479307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T17:35:35.849Z","updated_at":"2025-03-20T11:17:22.449Z","avatar_url":"https://github.com/widgetii.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Action for CMake\n\nAn action for building CMake projects.\n\n## Usage\n\nThere are two ways of using this action, (1) to build the repository \nwhere the workflow is stored, or (2) to clone a CMake project into the \nworkspace and build it.\n\n### Example Workflow\n\nTo clone and build at the same time:\n\n```hcl\nworkflow \"compile a cmake project\" {\n  on = \"push\"\n  resolves = \"build\"\n}\n\naction \"build\" {\n  uses = \"popperized/cmake@master\"\n  args = \"install\"\n  env = {\n    CMAKE_GIT_REPO = \"https://github.com/bast/cmake-example\",\n    CMAKE_GIT_REF = \"dev\",\n    CMAKE_INSTALL_DEPS_SCRIPT = \"scripts/install_deps.sh\",\n    CMAKE_FLAGS = \"-DCMAKE_INSTALL_PREFIX:PATH=/tmp/foo\",\n    CMAKE_BUILD_THREADS = \"8\"\n  }\n}\n```\n\nOr to run for an existing folder:\n\n```hcl\nworkflow \"compile a cmake project\" {\n  on = \"push\"\n  resolves = \"build\"\n}\n\naction \"build\" {\n  uses = \"popperized/cmake@master\"\n  args = \"install\"\n  env = {\n    CMAKE_PROJECT_DIR = \"./\",\n    CMAKE_FLAGS = \"-DCMAKE_INSTALL_PREFIX:PATH=$GITHUB_WORKSPACE/install\",\n    CMAKE_CLEAN = 1\n  }\n}\n```\n\n### Environment\n\n  * `CMAKE_GIT_REPO` **optional** a string containing a valid Git URL \n    of a repo. This repo is assumed to be a CMake project, which is \n    cloned into the workspace and built. Either this or \n    `CMAKE_PROJECT_DIR` is expected.\n\n  * `CMAKE_GIT_REF` **optional** the Git REF intended to be checked \n    out. If not given, the default branch is checked out.\n\n  * `CMAKE_PROJECT_DIR` **optional** the path to the folder in the \n    workspace containing the CMake project to build. Either this or \n    `CMAKE_GIT_REPO` is expected.\n\n  * `CMAKE_INSTALL_DEPS_SCRIPT` **optional** The path to an executable \n    bash script that is invoked prior to running CMake which can be \n    used to install build dependencies (base image is Debian 10).\n\n  * `CMAKE_FLAGS` **optional** a string containing flags that are \n    passed to the `cmake` command. Empty string by default.\n\n  * `CMAKE_CLEAN` **optional** remove the `build/` folder prior \n    to executing `cmake`. By default (when this variable is not set), \n    the `build/` is left intact.\n\n  * `CMAKE_BUILD_THREADS` **optional** number of threads used to build \n    the project; passed to `make` via the `-j` flag. By default this \n    is `grep processor /proc/cpuinfo | wc -l`.\n\n# License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwidgetii%2Fcmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwidgetii%2Fcmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwidgetii%2Fcmake/lists"}