Skip to content

Commit

Permalink
ci: Resolve build issues for cpp-lint and cpp-build
Browse files Browse the repository at this point in the history
  • Loading branch information
taminob committed Mar 12, 2024
1 parent f750a2f commit 9b784dd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/cpp-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on: [push, pull_request]

jobs:
build:
name: "gcc build"
name: "gcc/clang build"
runs-on: ubuntu-22.04
matrix:
cpp17_compatibility: [ "ON", "OFF" ]
cpp_compiler: [ "g++", "clang++" ]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
Expand All @@ -14,14 +17,24 @@ jobs:
sudo apt-get -y --no-install-recommends install \
cmake='3.22.*' \
gcc-11='11.*' \
libboost-program-options-dev='1.74.*' \
clang='1:14.*' \
libboost-filesystem-dev='1.74.*' \
libboost-python-dev='1.74.*' \
libfmt-dev='8.*'
- name: Execute cmake
run: |
mkdir -pv build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
CXX=/usr/bin/${{ matrix.cpp_compiler }} \
cmake . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DPPPLUGIN_SHARED=ON \
-DPPPLUGIN_ENABLE_EXAMPLES=ON \
-DPPPLUGIN_ENABLE_TESTS=ON \
-DPPPLUGIN_ENABLE_CPP17_COMPATIBILITY=${{ matrix.cpp17_compatibility }}
- name: Execute make
run: |
cd build
make -j
- name: Install
run: |
cd build
make install
4 changes: 3 additions & 1 deletion .github/workflows/cpp-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
sudo apt-get update -y
sudo apt-get -y --no-install-recommends install \
cmake='3.22.*' \
gcc-11='11.*' \
clang-tidy='1:14.*' \
libboost-program-options-dev='1.74.*' \
libboost-filesystem-dev='1.74.*' \
libboost-python-dev='1.74.*' \
libfmt-dev='8.*'
- name: Generate compile_commands.json
run: |
Expand Down

0 comments on commit 9b784dd

Please sign in to comment.