Common API C++ Examples is an example integration of the COVESA / GENIVI CommonAPI C++ framework, along with detailed examples and documentation.
Refer to the documentation here for details.
Clone the repository as:
git clone https://github.com/dmg0345/commonapi_cpp_examples
Example commands to build the source code and run the tests are provided below:
cmake -C "./other/cmake/preload/release.cmake" -S . -B "./.cmake_build"
cmake --build "./.cmake_build" -j --target all
ctest --test-dir "./.cmake_build"
Find the base Docker image for the development container at DockerHub. To develop using devcontainers and Visual Studio Code:
docker pull dmg00345/commonapi_cpp_examples:latest
./manage.ps1 run
To generate a release follow the steps below:
- Create a release branch from
develop
branch namedrelease/X.Y.Z
. - Update version in conf.py file and in versioning.cmake file commit this and other changes to
release/X.Y.Z
. - Afterwards, on
release/X.Y.Z
, run cmake with-DCFG_TAG:BOOL=ON
to tag all files and commit changes. - Create a pull request from
release/X.Y.Z
tomaster
, with title Release X.Y.Z, and merge it. - When merged in
master
create release and tag from Github from merged commit, review production workflow passes. - On
release/X.Y.Z
, run cmake with-DCFG_TAG:BOOL=RESTORE
to untag all files and commit changes. - Create pull request from
release/X.Y.Z
todevelop
, with the title Release X.Y.Z, and merge it. - Do not delete the branch
release/X.Y.Z
.