Skip to content

Commit 6f736f2

Browse files
committed
Fixed github actions
1 parent 81ca520 commit 6f736f2

5 files changed

Lines changed: 18 additions & 19 deletions

File tree

.github/workflows/cppcheck.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Name: CppCheck code linter
2-
1+
name: CppCheck code linter
32

43
on:
54
push:
@@ -9,16 +8,17 @@ on:
98

109
jobs:
1110
linter:
12-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1615
with:
1716
submodules: true
1817

1918
- name: Update repo
2019
run: |
2120
sudo apt-get update
21+
sudo apt install -y cppcheck
2222
2323
- name: Run cppcheck
2424
run: |

.github/workflows/linux.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Name: Linux interop tests
2-
1+
name: Linux interop tests
32

43
on:
54
push:
@@ -8,11 +7,11 @@ on:
87
branches: [ '*' ]
98

109
jobs:
11-
unit_test:
12-
runs-on: ubuntu-22.04
10+
linux_test:
11+
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1615
with:
1716
submodules: true
1817

@@ -27,9 +26,6 @@ jobs:
2726
mkdir -p build/port
2827
make
2928
30-
- name: Run unit tests
31-
run: make unit
32-
3329
- name: Run standalone tests
3430
run: |
3531
sudo ./build/test-evloop

.github/workflows/units.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Name: Unit Tests
2-
1+
name: Unit Tests
32

43
on:
54
push:
@@ -9,10 +8,10 @@ on:
98

109
jobs:
1110
unit_test:
12-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1615
with:
1716
submodules: true
1817

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ CFLAGS+=-g -ggdb
44
LDFLAGS+=-pthread
55

66
CPPCHECK=cppcheck
7-
CPPCHECK_FLAGS=--enable=all --suppress=missingIncludeSystem \
7+
CPPCHECK_FLAGS=--enable=warning,performance,portability,missingInclude \
8+
--suppress=missingIncludeSystem \
9+
-i src/test \
810
--suppress=unusedFunction --suppress=unusedVariable \
911
--suppress=missingInclude --suppress=variableScope \
1012
--suppress=constVariable --suppress=constVariablePointer \
1113
--suppress=constParameterPointer \
1214
--suppress=constParameterCallback \
1315
--suppress=toomanyconfigs \
1416
--suppress=unmatchedSuppression --inconclusive \
17+
--disable=style \
1518
--std=c99 --language=c \
1619
--platform=unix64 \
20+
--check-level=exhaustive \
1721
--error-exitcode=1 --xml --xml-version=2
1822

1923
OBJ=build/wolfip.o \

config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
#define MAX_NEIGHBORS 16
1313

1414
#ifndef WOLFIP_MAX_INTERFACES
15-
#define WOLFIP_MAX_INTERFACES 1
15+
#define WOLFIP_MAX_INTERFACES 2
1616
#endif
1717

1818
#ifndef WOLFIP_ENABLE_FORWARDING
1919
#define WOLFIP_ENABLE_FORWARDING 0
2020
#endif
2121

2222
#ifndef WOLFIP_ENABLE_LOOPBACK
23-
#define WOLFIP_ENABLE_LOOPBACK 0
23+
#define WOLFIP_ENABLE_LOOPBACK 1
2424
#endif
2525

2626
#if WOLFIP_ENABLE_LOOPBACK && WOLFIP_MAX_INTERFACES < 2

0 commit comments

Comments
 (0)