Skip to content

Commit

Permalink
Update CI workflow for C++ SDK (#53)
Browse files Browse the repository at this point in the history
* Update CI workflow for C++ SDK
* Move gen-desired-state.yml to app workflows
  • Loading branch information
BjoernAtBosch authored May 7, 2024
1 parent 0eeb7a0 commit e0e6ca3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
File renamed without changes.
44 changes: 33 additions & 11 deletions src/cpp-sdk/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,56 @@ on:
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: Clone vehicle_model repository
uses: actions/checkout@v4
with:
repository: eclipse-velocitas/vehicle-model-cpp
path: "./app/vehicle_model"
- 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: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 11

- name: Install dependencies
run: ./install_dependencies.sh -r

- name: build
run: ./build.sh -r
run: ./build.sh -r --cov

- name: unittests
run: build/bin/sdk_utests
Expand Down

0 comments on commit e0e6ca3

Please sign in to comment.