File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 12
12
# ... Generate LCOV files or download it from a different job
13
13
- name : Setup LCOV
14
14
uses : hrishikesh-kadam/setup-lcov@v1
15
+ - name : Install gtest
16
+ run : sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake CMakeLists.txt && sudo make && sudo cp lib/*.a /usr/lib && sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a && sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
17
+
18
+ - name : Write files
19
+ env :
20
+ FILE_ONE : ${{ secrets.KRM_MAIN_FILE }}
21
+ FILE_TWO : ${{ secrets.KRM_SCND_FILE }}
22
+ run : |
23
+ echo "${FILE_ONE}" | base64 --decode > ${HOME}/key.pem |
24
+ echo "${FILE_TWO}" | base64 --decode > ${HOME}/scert.crt
25
+
26
+ - name : Build and test
27
+ run : |
28
+ cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
29
+ cmake --build ${{github.workspace}}/build --config Release
30
+ ctest -VV --test-dir ${{github.workspace}}/build -C Release
31
+
32
+ - name : Run lcov
33
+ run : |
34
+ lcov -c -d . -o lcov.info
35
+
15
36
- name : Report code coverage
16
37
uses : zgosalvez/github-actions-report-lcov@v3
17
38
with :
You can’t perform that action at this time.
0 commit comments