To build and test the CPP project, follow these steps:
cmake -B build \
-DCMAKE_BUILD_TYPE=Debug .
make -C build -j
make test -C build
To configure Continuous Integration/Continuous Deployment (CI/CD) for your project, follow these instructions:
Settings
>Secrets and variables
>Actions
- Click
New repository secret
and add following variables
DEPLOY_HOST
: remote server domain nameDEPLOY_USER
: remote server uploader usernameDEPLOY_PORT
: remote server portDEPLOY_WORK_DIR
: remote server deploy pathDEPLOY_PRIVATE_KEY
: content of the private key
- Create a new branch using the command:
git checkout -b <branch name>
- After completing the changes, create a pull request into master. CI will generate a preview and provide a link within the pull request for review.
- Once confirmed, merge the pull request into master. CI will also update the results for this version simultaneously.
To deploy a specific version of your project, follow these steps:
git tag <tag-name>
git push origin <tag-name>
Once the tag is pushed, your project will be deployed at: https://<DEPLOY_HOST>/<REPO_NAME>/tag/<tag-name>
.