Skip to content

Extend model classes with small int types and node type #533

Extend model classes with small int types and node type

Extend model classes with small int types and node type #533

Workflow file for this run

# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: SDK - CI workflow
concurrency:
group: sdk-ci-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
# Run only on branches/commits and not tags
branches:
- main
pull_request:
branches:
- main
jobs:
conan-package:
runs-on: ubuntu-22.04
container: ghcr.io/eclipse-velocitas/devcontainer-base-images/cpp:v0.3
name: Check Conan package
strategy:
matrix:
host: ["linux_x86_64"]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Fix dubious ownership
run: |
git config --global --add safe.directory $( pwd )
- name: install prerequisites
run: |
sudo apt-get update && sudo apt-get install -y ninja-build clang-format-14 clang-tidy-14 cppcheck
pip3 install -r requirements.txt
- name: Create conan package
run: |
conan create --build=missing -pr:b ./.conan/profiles/linux_x86_64_release -pr:h ./.conan/profiles/${{ matrix.host }}_release . ci/testing
build-and-publish:
runs-on: ubuntu-22.04
name: "Build, Test and Lint"
container: ghcr.io/eclipse-velocitas/devcontainer-base-images/cpp:v0.3
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Fix dubious ownership
run: |
git config --global --add safe.directory $( pwd )
- name: install prerequisites
run: |
sudo apt-get update && sudo apt-get install -y ninja-build clang-format-14 clang-tidy-14 cppcheck
pip3 install -r requirements.txt
- name: Install dependencies
run: ./install_dependencies.sh -r
- name: build
run: ./build.sh -r --cov
- name: unittests
run: build/bin/sdk_utests
- name: Generate coverage report
run: cd build && gcovr -r ..
- name: Code Coverage Summary Report
uses: irongut/[email protected]
with:
filename: build/coverage.cobertura.xml
badge: true
format: markdown
hide_complexity: true
indicators: true
output: both
#########################################################
# This step was disabled temporarily due to the required
# write access rights of the PRs for external contributors.
#########################################################
#- name: Add Coverage PR Comment
# uses: marocchino/sticky-pull-request-comment@v2
# if: github.event_name == 'pull_request'
# with:
# recreate: true
# path: code-coverage-results.md
- name: Run Linters
uses: pre-commit/[email protected]