Skip to content

Commit 359c499

Browse files
committed
prepare for rust pkg tests
1 parent 3f86baa commit 359c499

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/cpp-lint-package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
description: 'which branch to test'
88
default: 'main'
99
required: true
10+
pull_request:
1011

1112
jobs:
1213
cpp-linter:
@@ -30,7 +31,10 @@ jobs:
3031
python-version: 3.x
3132

3233
- name: Install workflow deps
33-
run: python -m pip install clang-tools git+https://github.com/${{ matrix.repo }}/@${{ matrix.branch }}
34+
# run: python -m pip install clang-tools git+https://github.com/${{ matrix.repo }}/@${{ matrix.branch }}
35+
run: |
36+
python -m pip install clang-tools
37+
python -m pip install -i https://test.pypi.org/simple/ cpp-linter
3438
3539
- name: Install clang-tools
3640
run: clang-tools --install ${{ matrix.clang-version }} --directory ${{ runner.temp }}/llvm

src/demo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ size_t dummyFunc(size_t i) { return i; }
88

99
int main()
1010
{
11-
for (;;)
12-
break;
11+
for (;;) break;
1312

1413
printf("Hello world!\n");
1514

src/demo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Dummy {
77
int numb;
88

99
public:
10-
void *not_usefull(char *str){
10+
void *not_useful(char *str){
1111
useless = str;
1212
return 0;
1313
}

0 commit comments

Comments
 (0)