Skip to content

Commit 886ed58

Browse files
committed
Add gcc-7 on 20.04
And use gcc-7 by specifying CC and CXX. Also, enable 18.04 back in 2 separate job duplicates. Relates-To: OLPEDGE-2776 Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com>
1 parent bc616d5 commit 886ed58

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

.github/workflows/psv_pipelines.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ jobs:
1717
psv-linux-gcc-build-test-codecov:
1818
name: PSV / Linux gcc 7.5 / Tests / Code coverage
1919
runs-on: ubuntu-20.04
20+
env:
21+
BUILD_TYPE: RelWithDebInfo
22+
CC: gcc-7
23+
CXX: g++-7
2024
steps:
2125
- name: Check out repository
2226
uses: actions/checkout@v2
2327
- name: "C++ Lint checker script"
2428
run: ./scripts/misc/cpplint_ci.sh
2529
shell: bash
2630
- 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
2832
shell: bash
2933
- name: Compile project with cmake and ccache
3034
run: gcc --version && ./scripts/linux/psv/build_psv.sh
@@ -41,6 +45,47 @@ jobs:
4145
psv-linux-gcc-build-no-cache:
4246
name: PSV / Linux gcc 7.5 / OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
4347
runs-on: ubuntu-20.04
48+
env:
49+
BUILD_TYPE: RelWithDebInfo
50+
CC: gcc-7
51+
CXX: g++-7
52+
steps:
53+
- name: Check out repository
54+
uses: actions/checkout@v2
55+
- name: Install Ubuntu dependencies
56+
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
57+
shell: bash
58+
- name: Compile project without cache
59+
run: ./scripts/linux/psv/build_psv_no_cache.sh
60+
shell: bash
61+
62+
psv-linux-gcc-build-test-codecov-18-04:
63+
name: PSV / Linux gcc 7.5 / Tests / Code coverage
64+
runs-on: ubuntu-18.04
65+
steps:
66+
- name: Check out repository
67+
uses: actions/checkout@v2
68+
- name: "C++ Lint checker script"
69+
run: ./scripts/misc/cpplint_ci.sh
70+
shell: bash
71+
- name: Install Ubuntu dependencies
72+
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev ccache libssl-dev libcurl4-openssl-dev --no-install-recommends
73+
shell: bash
74+
- name: Compile project with cmake and ccache
75+
run: gcc --version && ./scripts/linux/psv/build_psv.sh
76+
shell: bash
77+
- name: Run unit and integration tests. Report coverage to CodeCov.
78+
run: ./scripts/linux/psv/test_psv.sh
79+
shell: bash
80+
- name: Archive code coverage script
81+
uses: actions/upload-artifact@v2
82+
with:
83+
name: codecov-script
84+
path: codecov_upload_bash_*.sh
85+
86+
psv-linux-gcc-build-no-cache-18-04:
87+
name: PSV / Linux gcc 7.5 / OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
88+
runs-on: ubuntu-18.04
4489
env:
4590
BUILD_TYPE: RelWithDebInfo
4691
steps:

0 commit comments

Comments
 (0)