File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
steps :
16
16
- uses : actions/checkout@v4
17
+ - name : Setup cmake
18
+ uses : jwlawson/actions-setup-cmake@v2
19
+ with :
20
+ cmake-version : ' 3.22.x'
21
+ - name : Configure CMake
22
+ run : cmake -B cmake-build-posix -S executables/referenceApp -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
23
+
24
+ - name : Build
25
+ run : cmake --build cmake-build-posix --target app.referenceApp -j --config ${{env.BUILD_TYPE}}
17
26
18
- - name : Set permissions for cmake-build-unit-tests
19
- run : chmod -R a+r cmake-build-unit-tests
27
+ - name : Test
28
+ # Execute tests defined by the CMake configuration.
29
+ run : |
30
+ cmake -B cmake-build-unit-tests -S executables/unitTest -DBUILD_UNIT_TESTS=ON
31
+ cmake --build cmake-build-unit-tests -j4
32
+ ctest --test-dir cmake-build-unit-tests -j4
20
33
21
34
# Code coverage
22
35
- name : Install lcov
You can’t perform that action at this time.
0 commit comments