Skip to content

Commit bf1fc03

Browse files
authored
Fix lint (#2181)
1 parent 5225bb3 commit bf1fc03

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
CLANG_FORMAT: clang-format-17
3131

3232
cpplint:
33-
runs-on: ubuntu-22.04
33+
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v4
3636

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
name: Build and Push Docker Image
22

33
on:
4-
push:
5-
branches:
6-
- master # 触发条件,可以根据需要调整分支
4+
release:
5+
types: [created] # 当新版本被创建时触发
76

87
jobs:
98
build:
109
runs-on: ubuntu-latest
1110

1211
steps:
1312
- name: Check out code
14-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1514

1615
- name: Log in to Docker Hub
1716
uses: docker/login-action@v1

CPPLINT.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ filter=-runtime/references
1010
# CHECK macros are from Drogon, not Google Test.
1111
filter=-readability/check
1212

13-
# Don't warn about the use of C++11 features.
13+
# Don't warn about the use of C++11 or C++17 features.
1414
filter=-build/c++11
15+
filter=-build/c++17
1516

1617
filter=-build/include_subdir
1718

0 commit comments

Comments
 (0)