@@ -17,37 +17,40 @@ jobs:
17
17
psv-linux-gcc-build-test-codecov :
18
18
name : PSV / Linux gcc 7.5 / Tests / Code coverage
19
19
runs-on : ubuntu-20.04
20
+ env :
21
+ BUILD_TYPE : RelWithDebInfo
22
+ CC : gcc-7
23
+ CXX : g++-7
20
24
steps :
21
25
- name : Check out repository
22
- uses : actions/checkout@v2
26
+ uses : actions/checkout@v3
23
27
- name : " C++ Lint checker script"
24
28
run : ./scripts/misc/cpplint_ci.sh
25
29
shell : bash
26
30
- name : Install Ubuntu dependencies
27
- run : sudo apt-get update && sudo apt-get install -y libboost-all-dev ccache libssl-dev libcurl4-openssl-dev --no-install-recommends
31
+ run : sudo apt-get update && sudo apt-get install -y libboost-all-dev ccache libssl-dev libcurl4-openssl-dev gcc-7 g++-7 --no-install-recommends
28
32
shell : bash
29
33
- name : Compile project with cmake and ccache
30
34
run : gcc --version && ./scripts/linux/psv/build_psv.sh
31
35
shell : bash
32
- - name : Run unit and integration tests. Report coverage to CodeCov.
36
+ - name : Run unit and integration tests
33
37
run : ./scripts/linux/psv/test_psv.sh
34
38
shell : bash
35
- - name : Archive code coverage script
36
- uses : actions/upload-artifact@v2
37
- with :
38
- name : codecov-script
39
- path : codecov_upload_bash_*.sh
39
+ - name : Upload coverage to Codecov
40
+ uses : codecov/codecov-action@v3
40
41
41
42
psv-linux-gcc-build-no-cache :
42
43
name : PSV / Linux gcc 7.5 / OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
43
44
runs-on : ubuntu-20.04
44
45
env :
45
46
BUILD_TYPE : RelWithDebInfo
47
+ CC : gcc-7
48
+ CXX : g++-7
46
49
steps :
47
50
- name : Check out repository
48
51
uses : actions/checkout@v2
49
52
- name : Install Ubuntu dependencies
50
- run : sudo apt-get update && sudo apt-get install -y libboost-all-dev libssl-dev libcurl4-openssl-dev --no-install-recommends
53
+ run : sudo apt-get update && sudo apt-get install -y libboost-all-dev libssl-dev libcurl4-openssl-dev gcc-7 g++-7 --no-install-recommends
51
54
shell : bash
52
55
- name : Compile project without cache
53
56
run : ./scripts/linux/psv/build_psv_no_cache.sh
0 commit comments