From bf1fc03bff179b0b71f8b7ded2671b6b9473dbb5 Mon Sep 17 00:00:00 2001 From: An Tao Date: Wed, 9 Oct 2024 18:20:29 +0800 Subject: [PATCH] Fix lint (#2181) --- .github/workflows/cpp.yml | 2 +- .github/workflows/docker-publish.yml | 7 +++---- CPPLINT.cfg | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 76768009..6325a4ba 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -30,7 +30,7 @@ jobs: CLANG_FORMAT: clang-format-17 cpplint: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f8c13898..cbd32503 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,9 +1,8 @@ name: Build and Push Docker Image on: - push: - branches: - - master # 触发条件,可以根据需要调整分支 + release: + types: [created] # 当新版本被创建时触发 jobs: build: @@ -11,7 +10,7 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Log in to Docker Hub uses: docker/login-action@v1 diff --git a/CPPLINT.cfg b/CPPLINT.cfg index 76f322eb..57d6efe1 100644 --- a/CPPLINT.cfg +++ b/CPPLINT.cfg @@ -10,8 +10,9 @@ filter=-runtime/references # CHECK macros are from Drogon, not Google Test. filter=-readability/check -# Don't warn about the use of C++11 features. +# Don't warn about the use of C++11 or C++17 features. filter=-build/c++11 +filter=-build/c++17 filter=-build/include_subdir