Commit 3bafc76 1 parent bfd2d66 commit 3bafc76 Copy full SHA for 3bafc76
File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
build :
15
15
runs-on : ubuntu-22.04
16
+ permissions : read-all
17
+ container :
18
+ image : ghcr.io/aosedge/aos-core-build-base:latest
19
+ options : ' --entrypoint /usr/bin/bash'
20
+ credentials :
21
+ username : ${{ github.actor }}
22
+ password : ${{ github.token }}
23
+
16
24
steps :
25
+ # Apply solution to "HOME is overridden for containers" problem: https://github.com/actions/runner/issues/863
26
+ - name : Preserve $HOME set in the container
27
+ run : echo HOME=/root >> "$GITHUB_ENV"
28
+
17
29
- name : Checkout
18
30
uses : actions/checkout@v4
19
31
with :
20
32
fetch-depth : 0
21
33
submodules : ' recursive'
22
34
23
- - name : Prepare
24
- run : |
25
- sudo apt install lcov libsofthsm2 libsystemd-dev cppcheck -y
26
- pip install conan
27
-
28
35
- name : Build and test
29
36
run : |
30
37
mkdir build
40
47
- name : Static analysis
41
48
run : |
42
49
cppcheck --enable=all --inline-suppr -I src --std=c++17 --error-exitcode=1 \
43
- --suppressions-list=./suppressions.txt -I build/aoscorecommon /include src
50
+ --suppressions-list=./suppressions.txt -I external/aos_core_common_cpp /include src
44
51
45
52
- name : Upload codecov report
46
53
uses : codecov/codecov-action@v4
You can’t perform that action at this time.
0 commit comments