{"repo":"lukka/CppCMakeVcpkgTemplate","free":true,"listed":false,"github":"https://github.com/lukka/CppCMakeVcpkgTemplate","clone":"git clone https://github.com/lukka/CppCMakeVcpkgTemplate.git","description":"A template project to build a C++/CMake/vcpkg based projects with IDE and GitHub Actions. Build is sped up with caching of artifacts.","language":"CMake","stars":157,"topics":["cmake","vcpkg","github-actions","cpp","cpp20","template-repository"],"license":"MIT","category":"workflow-automation","readme_excerpt":"A C++ project template based on CMake and vcpkg Content This repository contains a C++ based project template that leverages vcpkg and CMake's CMakePresets.json to build and test C++ source code. Supports Linux / macOS / Windows on x64 and arm64 platforms. vcpkg is driven to use its binary caching feature storing the content in the GitHub Action cache, hence speeding up workflows by reusing previously built packages. Key features: - CMakePresets.json allows to run the same build either locally on your IDE and on GitHub runners . - vcpkg greatly helps in pulling and building the needed dependencies (e.g. libraries) which are cached for reuse on GitHub Action cache. GitHub Action workflows The repository provides also two GitHub workflows to build the project on GitHub runners. Both builds and tests the project using vcpkg and CMake , the only key difference is their implementation: - hosted-pure-workflow.yml: it is a pure workflow which does not use unneeded GitHub Actions that cannot run locally on your development machine. On the other hand it is directly using the CMake , Ninja , vcpkg and the C++ build tools. - hosted-ninja-vcpkg submod.yml: it is a concise workflow based on the custom GitHub Actions get-cmake, run-vcpkg and run-cmake which simplify and shorten the workflow verbosity while adding some goodies like vcpkg binary caching stored on GH's cache and inline error annotations. Rationale The main idea of this C++ project template is to show how to obtain a perfectly","default_branch":null,"files":null,"tree":[],"storefront":"/r/lukka","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lukka/CppCMakeVcpkgTemplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}