Skip to content
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

cmake build with gcc4.8 #354

Merged
merged 11 commits into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from 8 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
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ jobs:
- name: run prometheus exporter tests
run: ./ci/do_ci.sh cmake.exporter.prometheus.test

cmake_gcc_48_test:
name: Legacy CMake
lalitb marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_gcc48.sh
- name: setup cmake
run: |
sudo CC=/usr/bin/gcc-4.8 CXX=/usr/bin/g++-4.8 ./ci/setup_cmake.sh
- name: run tests
run: ./ci/do_ci.sh cmake.legacy.test
env:
CC: /usr/bin/gcc-4.8
CXX: /usr/bin/g++-4.8
cmake_test_cxx20:
lalitb marked this conversation as resolved.
Show resolved Hide resolved
name: CMake C++20 test
runs-on: ubuntu-20.04
Expand Down
10 changes: 10 additions & 0 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ elif [[ "$1" == "cmake.c++20.test" ]]; then
make
make test
exit 0
elif [[ "$1" == "cmake.legacy.test" ]]; then
cd "${BUILD_DIR}"
rm -rf *
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS="-Werror" \
-DCMAKE_CXX_STANDARD=11 \
lalitb marked this conversation as resolved.
Show resolved Hide resolved
"${SRC_DIR}"
make
make test
exit 0;
lalitb marked this conversation as resolved.
Show resolved Hide resolved
elif [[ "$1" == "cmake.exporter.otprotocol.test" ]]; then
cd "${BUILD_DIR}"
rm -rf *
Expand Down