-
Notifications
You must be signed in to change notification settings - Fork 37
111 lines (94 loc) · 2.92 KB
/
wolfguard.yml
File metadata and controls
111 lines (94 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: wolfGuard tests
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
wolfguard_unit:
name: wolfGuard unit tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: "default"
target: "unit-wolfguard"
- name: "ASan"
target: "unit-wolfguard-asan"
- name: "UBSan"
target: "unit-wolfguard-ubsan"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential autoconf automake libtool pkg-config check
- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Build wolfGuard unit tests (${{ matrix.name }})
run: make ${{ matrix.target }}
- name: Run wolfGuard unit tests
timeout-minutes: 5
run: ./build/test/unit-wolfguard
wolfguard_loopback:
name: wolfGuard loopback tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: "default"
target: "test-wolfguard-loopback"
- name: "ASan"
target: "test-wolfguard-loopback-asan"
- name: "UBSan"
target: "test-wolfguard-loopback-ubsan"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential autoconf automake libtool pkg-config check
- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Build wolfGuard loopback test (${{ matrix.name }})
run: make ${{ matrix.target }}
- name: Run wolfGuard loopback test
timeout-minutes: 5
run: ./build/test/test-wolfguard-loopback
wolfguard_interop:
name: wolfGuard interop (kernel module)
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [wolfguard_unit, wolfguard_loopback]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Run wolfGuard interop test
timeout-minutes: 25
run: sudo ./tools/scripts/test-interop-wolfguard.sh