Skip to content

Commit c08da4f

Browse files
Run tests after build for different GCC (#1664)
* Run tests after build for different GCC version There could be differences between compiler and versions not in compile time but in runtime as well. Relates-To: MINOR Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com> * Add GCC-14 job with cache on latest Ubuntu There could be differences between compiler and versions not in compile time but in runtime as well. Relates-To: MINOR Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com> * Add .Tests to the job names that are running tests There could be differences between compiler and versions not in compile time but in runtime as well Relates-To: MINOR Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com> * Remove extra steps from cpplint job The faster linter is the better Relates-To: MINOR Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com> --------- Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent b877dc4 commit c08da4f

1 file changed

Lines changed: 32 additions & 9 deletions

File tree

.github/workflows/psv_pipelines.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ jobs:
2525
- name: "C++ Lint checker script"
2626
run: ./scripts/misc/cpplint_ci.sh
2727
shell: bash
28-
- name: Install Ubuntu dependencies
29-
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev ccache libssl-dev libcurl4-openssl-dev gcc-9 g++-9 --no-install-recommends
30-
shell: bash
31-
- name: Compile project with cmake and ccache
32-
run: gcc --version && ./scripts/linux/psv/build_psv.sh
33-
shell: bash
3428

3529
psv-linux-22-04-gcc9-build-test-codecov:
3630
name: PSV.Linux.22.04.gcc9.Tests.CodeCov
@@ -77,7 +71,7 @@ jobs:
7771
shell: bash
7872

7973
psv-linux-22-04-gcc11-build:
80-
name: PSV.Linux.22.04.gcc11
74+
name: PSV.Linux.22.04.gcc11.Tests
8175
runs-on: ubuntu-22.04
8276
env:
8377
BUILD_TYPE: RelWithDebInfo
@@ -90,6 +84,29 @@ jobs:
9084
- name: Compile project with cmake and ccache
9185
run: gcc --version && ./scripts/linux/psv/build_psv.sh
9286
shell: bash
87+
- name: Run unit and integration tests
88+
run: ./scripts/linux/psv/test_psv.sh
89+
shell: bash
90+
91+
psv-linux-latest-gcc14-build:
92+
name: PSV.Linux.latest.gcc14.Tests
93+
runs-on: ubuntu-latest
94+
env:
95+
BUILD_TYPE: RelWithDebInfo
96+
CC: gcc-14
97+
CXX: g++-14
98+
steps:
99+
- name: Check out repository
100+
uses: actions/checkout@v4
101+
- name: Install Ubuntu dependencies
102+
run: sudo rm /etc/apt/sources.list.d/microsoft-prod.list && sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install -y libboost-all-dev libssl-dev libcurl4-openssl-dev gcc-14 g++-14 ccache --no-install-recommends
103+
shell: bash
104+
- name: Compile project with cmake and ccache
105+
run: gcc --version && ./scripts/linux/psv/build_psv.sh
106+
shell: bash
107+
- name: Run unit and integration tests
108+
run: ./scripts/linux/psv/test_psv.sh
109+
shell: bash
93110

94111
psv-linux-latest-gcc14-build-no-cache:
95112
name: PSV.Linux.latest.gcc14.OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
@@ -109,7 +126,7 @@ jobs:
109126
shell: bash
110127

111128
psv-linux-22-04-gcc13-build:
112-
name: PSV.Linux.22.04.gcc13
129+
name: PSV.Linux.22.04.gcc13.Tests
113130
runs-on: ubuntu-22.04
114131
env:
115132
BUILD_TYPE: RelWithDebInfo
@@ -124,6 +141,9 @@ jobs:
124141
- name: Compile project with cmake and ccache
125142
run: gcc --version && ./scripts/linux/psv/build_psv.sh
126143
shell: bash
144+
- name: Run unit and integration tests
145+
run: ./scripts/linux/psv/test_psv.sh
146+
shell: bash
127147

128148
psv-linux-22-04-gcc11-build-no-cache:
129149
name: PSV.Linux.22.04.gcc11.OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
@@ -141,7 +161,7 @@ jobs:
141161
shell: bash
142162

143163
psv-linux-22-04-clang-build:
144-
name: PSV.Linux.22.04.clang
164+
name: PSV.Linux.22.04.clang.Tests
145165
runs-on: ubuntu-22.04
146166
env:
147167
BUILD_TYPE: RelWithDebInfo
@@ -157,6 +177,9 @@ jobs:
157177
- name: Compile project on Clang
158178
run: scripts/linux/psv/build_psv.sh
159179
shell: bash
180+
- name: Run unit and integration tests
181+
run: scripts/linux/psv/test_psv.sh
182+
shell: bash
160183

161184
psv-android-22-04-build:
162185
name: PSV.Linux.Android.22.04

0 commit comments

Comments
 (0)