Skip to content

Switch CI to ubuntu 22.04 #1605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 23 additions & 26 deletions .github/workflows/psv_pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@ env:
SEGFAULT_SIGNALS: all

jobs:
psv-linux-20-04-gcc7-build-cpplint:
name: PSV.Linux.20.04.gcc7.Cpplint
runs-on: ubuntu-20.04
psv-linux-22-04-gcc9-build-cpplint:
name: PSV.Linux.22.04.gcc9.Cpplint
runs-on: ubuntu-22.04
env:
LD_PRELOAD: /lib/x86_64-linux-gnu/libSegFault.so
BUILD_TYPE: RelWithDebInfo
CC: gcc-7
CXX: g++-7
CC: gcc-9
CXX: g++-9
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: "C++ Lint checker script"
run: ./scripts/misc/cpplint_ci.sh
shell: bash
- name: Install Ubuntu dependencies
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
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
shell: bash
- name: Compile project with cmake and ccache
run: gcc --version && ./scripts/linux/psv/build_psv.sh
Expand Down Expand Up @@ -60,19 +59,18 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

psv-linux-20-04-gcc7-build-no-cache:
name: PSV.Linux.20.04.gcc7.OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
runs-on: ubuntu-20.04
psv-linux-22-04-gcc9-build-no-cache:
name: PSV.Linux.22.04.gcc9.OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
runs-on: ubuntu-22.04
env:
LD_PRELOAD: /lib/x86_64-linux-gnu/libSegFault.so
BUILD_TYPE: RelWithDebInfo
CC: gcc-7
CXX: g++-7
CC: gcc-9
CXX: g++-9
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
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
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev libssl-dev libcurl4-openssl-dev gcc-9 g++-9 --no-install-recommends
shell: bash
- name: Compile project without cache
run: ./scripts/linux/psv/build_psv_no_cache.sh
Expand Down Expand Up @@ -142,29 +140,28 @@ jobs:
run: ./scripts/linux/psv/build_psv_no_cache.sh
shell: bash

psv-linux-20-04-clang-build:
name: PSV.Linux.20.04.clang
runs-on: ubuntu-20.04
psv-linux-22-04-clang-build:
name: PSV.Linux.22.04.clang
runs-on: ubuntu-22.04
env:
LD_PRELOAD: /lib/x86_64-linux-gnu/libSegFault.so
BUILD_TYPE: RelWithDebInfo
CC: clang-7
CXX: clang++-7
CC: clang-11
CXX: clang++-11
CXXFLAGS: -Wno-deprecated-copy
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo apt-get update -y && sudo apt-get install clang-7 ccache libcurl4-openssl-dev -y --no-install-recommends --fix-missing
run: sudo apt-get update -y && sudo apt-get install clang-11 ccache libcurl4-openssl-dev -y --no-install-recommends --fix-missing
shell: bash
- name: Compile project on Clang
run: scripts/linux/psv/build_psv.sh
shell: bash

psv-android-20-04-build:
name: PSV.Linux.Android.20.04
runs-on: ubuntu-20.04
psv-android-22-04-build:
name: PSV.Linux.Android.22.04
runs-on: ubuntu-22.04
env:
LD_PRELOAD: /lib/x86_64-linux-gnu/libSegFault.so
BUILD_TYPE: RelWithDebInfo
steps:
- name: Check out repository
Expand Down Expand Up @@ -263,7 +260,7 @@ jobs:

psv-commit-checker:
name: PSV.Commit.Checker
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.ref_name != 'master'
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion scripts/linux/psv/build_psv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ulimit -c unlimited
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror" \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror $CXXFLAGS" \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DOLP_SDK_BUILD_EXAMPLES=ON \
-DBUILD_SHARED_LIBS=ON \
Expand Down
Loading