Skip to content

Commit

Permalink
fix lint check issue on github ci
Browse files Browse the repository at this point in the history
Signed-off-by: wxy407827 <[email protected]>
  • Loading branch information
wxyucs committed Jan 6, 2025
1 parent 7124411 commit fb8b864
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lcov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python -m pip install --upgrade pip
pip install lcov_cobertura
apt-get update
apt install -y curl jq
apt install -y curl jq python3-dev
- name: Load Cache
uses: actions/[email protected]
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
clang-tidy-check:
name: Lint
runs-on: ubuntu-latest
container:
image: vsaglib/vsag:ubuntu
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install clang-tidy
run: sudo apt install clang-tidy-15 -y
run: sudo apt install clang-tidy-15 -y && sudo ln -s /usr/bin/clang-tidy-15 /usr/bin/clang-tidy
- name: Run lint
run: make lint
run: make debug && make lint
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ if (ENABLE_TOOLS AND ENABLE_CXX11_ABI)
endif ()

set (CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 17 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 17)
Expand Down

0 comments on commit fb8b864

Please sign in to comment.