9
9
default : ' main'
10
10
required : false
11
11
description : ' Branch name to use'
12
-
13
12
push :
14
13
branches :
15
14
- main
20
19
- ' maint-**'
21
20
22
21
concurrency :
23
- group : ${{ github.head_ref || github.run_id }}
22
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
24
23
cancel-in-progress : true
25
24
26
25
env :
27
26
# Customize the env if
28
27
BUILD_TYPE : ' Release'
29
28
DPDK_VERSION : ' 23.11'
30
- DPDK_REBUILD : ' false'
31
29
# Bellow ENV variables are required to be defined on runner side:
32
30
# TEST_PF_PORT_P: '0000:49:00.0'
33
31
# TEST_PF_PORT_R: '0000:49:00.1'
@@ -69,34 +67,18 @@ jobs:
69
67
- name : Checkout MTL
70
68
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
71
69
with :
72
- ref : ' ${{ inputs.branch-to-checkout || github.head_ref || github.ref }}'
73
-
74
- - name : Checkout DPDK
75
- if : env.DPDK_REBUILD == 'true'
76
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
77
- with :
78
- repository : ' DPDK/dpdk'
79
- ref : ' v${{ env.DPDK_VERSION }}'
80
- path : ' dpdk'
70
+ ref : ' ${{ inputs.branch-to-checkout || github.sha || github.ref }}'
81
71
82
72
- name : Install the build dependency
83
73
run : |
84
- sudo apt-get install -y git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev
85
- sudo apt-get install -y systemtap-sdt-dev
86
-
87
- - name : Apply dpdk patches
88
- if : env.DPDK_REBUILD == 'true'
89
- run : |
90
- patch -d "dpdk" -p1 -i <(cat patches/dpdk/${{ env.DPDK_VERSION }}/*.patch)
91
-
92
- - name : Build dpdk
93
- if : env.DPDK_REBUILD == 'true'
94
- run : |
95
- cd dpdk
96
- meson build
97
- ninja -C build
98
- cd build
99
- sudo ninja install
74
+ sudo apt-get install -y \
75
+ git gcc meson \
76
+ python3-dev \
77
+ python3-pyelftools \
78
+ libjson-c-dev libpcap-dev libgtest-dev \
79
+ libsdl2-dev libsdl2-ttf-dev libssl-dev \
80
+ pkg-config libnuma-dev \
81
+ systemtap-sdt-dev
100
82
101
83
- name : Build
102
84
run : |
@@ -122,7 +104,7 @@ jobs:
122
104
123
105
- name : Binding network adapter
124
106
run : |
125
- sudo ./script/ nicctl.sh create_vf "${TEST_PF_PORT_P}" || true
107
+ sudo nicctl create_vf "${TEST_PF_PORT_P}" || true
126
108
sudo dpdk-devbind.py -b vfio-pci "${TEST_DMA_PORT_P}" || true
127
109
sudo dpdk-devbind.py -b vfio-pci "${TEST_DMA_PORT_R}" || true
128
110
@@ -161,3 +143,11 @@ jobs:
161
143
- name : Run st2110 st20p test case with kernel loopback
162
144
run : |
163
145
./build/tests/KahawaiTest --p_port kernel:lo --r_port kernel:lo --auto_start_stop --gtest_filter=St20p*
146
+
147
+ - name : Kill gtest routines that could have been left
148
+ if : always()
149
+ run : |
150
+ sudo killall -SIGINT KahawaiTest || true
151
+ sudo killall -SIGINT KahawaiUfdTest || true
152
+ sudo killall -SIGINT KahawaiUplTest || true
153
+ sudo killall -SIGINT MtlManager || true
0 commit comments