diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 7676800909..6325a4baec 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 f8c138980c..cbd32503c9 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 76f322eb36..57d6efe1d3 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