|
28 | 28 | branches:
|
29 | 29 | - main
|
30 | 30 | jobs:
|
| 31 | + conan-package: |
| 32 | + runs-on: ubuntu-22.04 |
| 33 | + container: ghcr.io/eclipse-velocitas/devcontainer-base-images/cpp:v0.3 |
| 34 | + name: Check Conan package |
| 35 | + strategy: |
| 36 | + matrix: |
| 37 | + host: ["linux_x86_64"] |
| 38 | + fail-fast: false |
| 39 | + |
| 40 | + |
| 41 | + steps: |
| 42 | + - name: Checkout repository |
| 43 | + uses: actions/checkout@v4 |
| 44 | + |
| 45 | + - name: Fix dubious ownership |
| 46 | + run: | |
| 47 | + git config --global --add safe.directory $( pwd ) |
| 48 | +
|
| 49 | + - name: install prerequisites |
| 50 | + run: | |
| 51 | + sudo apt-get update && sudo apt-get install -y ninja-build clang-format-14 clang-tidy-14 cppcheck |
| 52 | + pip3 install -r requirements.txt |
| 53 | +
|
| 54 | + - name: Create conan package |
| 55 | + run: | |
| 56 | + conan create --build=missing -pr:b ./.conan/profiles/linux_x86_64_release -pr:h ./.conan/profiles/${{ matrix.host }}_release . ci/testing |
| 57 | +
|
31 | 58 | build-and-publish:
|
32 | 59 | runs-on: ubuntu-22.04
|
33 | 60 | name: "Build, Test and Lint"
|
| 61 | + container: ghcr.io/eclipse-velocitas/devcontainer-base-images/cpp:v0.3 |
| 62 | + |
34 | 63 | steps:
|
35 | 64 | - name: Checkout repository
|
36 | 65 | uses: actions/checkout@v4
|
37 | 66 |
|
38 |
| - - name: Clone vehicle_model repository |
39 |
| - uses: actions/checkout@v4 |
40 |
| - with: |
41 |
| - repository: eclipse-velocitas/vehicle-model-cpp |
42 |
| - path: "./app/vehicle_model" |
| 67 | + - name: Fix dubious ownership |
| 68 | + run: | |
| 69 | + git config --global --add safe.directory $( pwd ) |
43 | 70 |
|
44 | 71 | - name: install prerequisites
|
45 | 72 | run: |
|
46 | 73 | sudo apt-get update && sudo apt-get install -y ninja-build clang-format-14 clang-tidy-14 cppcheck
|
47 | 74 | pip3 install -r requirements.txt
|
48 | 75 |
|
49 |
| - - name: Set up GCC |
50 |
| - uses: egor-tensin/setup-gcc@v1 |
51 |
| - with: |
52 |
| - version: 11 |
53 |
| - |
54 | 76 | - name: Install dependencies
|
55 | 77 | run: ./install_dependencies.sh -r
|
56 | 78 |
|
57 | 79 | - name: build
|
58 |
| - run: ./build.sh -r |
| 80 | + run: ./build.sh -r --cov |
59 | 81 |
|
60 | 82 | - name: unittests
|
61 | 83 | run: build/bin/sdk_utests
|
|
0 commit comments