@@ -2,14 +2,10 @@ name: hostap and wpa-supplicant Tests
22
33# START OF COMMON SECTION
44on :
5- workflow_dispatch : # Allows people to run it manually if they want but
6- # disables it from running automatically when broken
7- # To restore this to an auto test delete the above workflow_dispatch line and
8- # comments and uncomment the below lines for push and pull_request
9- # push:
10- # branches: [ 'master', 'main', 'release/**' ]
11- # pull_request:
12- # branches: [ '*' ]
5+ push :
6+ branches : [ 'master', 'main', 'release/**' ]
7+ pull_request :
8+ branches : [ '*' ]
139
1410concurrency :
1511 group : ${{ github.workflow }}-${{ github.ref }}
@@ -80,12 +76,21 @@ jobs:
8076 with :
8177 path : hostap
8278 key : hostap-repo
83- lookup-only : true
8479
8580 - name : Checkout hostap
8681 if : steps.cache.outputs.cache-hit != 'true'
8782 run : git clone https://w1.fi/hostap.git hostap
8883
84+ - name : tar hostap
85+ run : tar -zcf hostap.tgz hostap
86+
87+ - name : Upload hostap repo
88+ uses : actions/upload-artifact@v4
89+ with :
90+ name : hostap-repo
91+ path : hostap.tgz
92+ retention-days : 1
93+
8994 build_uml_linux :
9095 name : Build UML (UserMode Linux)
9196 if : github.repository_owner == 'wolfssl'
@@ -100,15 +105,16 @@ jobs:
100105 with :
101106 path : linux/linux
102107 key : hostap-linux-${{ env.LINUX_REF }}
103- lookup-only : true
104108
105- - name : Checking if we have hostap in cache
109+ - name : Download hostap repo
106110 if : steps.cache.outputs.cache-hit != 'true'
107- uses : actions/cache/restore @v4
111+ uses : actions/download-artifact @v4
108112 with :
109- path : hostap
110- key : hostap-repo
111- fail-on-cache-miss : true
113+ name : hostap-repo
114+
115+ - name : untar hostap
116+ if : steps.cache.outputs.cache-hit != 'true'
117+ run : tar -xf hostap.tgz
112118
113119 - name : Checkout linux
114120 if : steps.cache.outputs.cache-hit != 'true'
@@ -126,6 +132,13 @@ jobs:
126132 cd linux
127133 yes "" | ARCH=um make -j $(nproc)
128134
135+ - name : Upload kernel binary
136+ uses : actions/upload-artifact@v4
137+ with :
138+ name : uml-linux-kernel
139+ path : linux/linux
140+ retention-days : 1
141+
129142 hostap_test :
130143 strategy :
131144 fail-fast : false
@@ -174,13 +187,14 @@ jobs:
174187 timeout-minutes : 45
175188 needs : [build_wolfssl, build_uml_linux, checkout_hostap]
176189 steps :
177- - name : Checking if we have kernel in cache
178- uses : actions/cache/restore@v4
179- id : cache
190+ - name : Download kernel binary
191+ uses : actions/download-artifact@v4
180192 with :
181- path : linux/linux
182- key : hostap-linux-${{ env.LINUX_REF }}
183- fail-on-cache-miss : true
193+ name : uml-linux-kernel
194+ path : linux
195+
196+ - name : Restore kernel binary executable bit
197+ run : chmod +x linux/linux
184198
185199 # No way to view the full strategy in the browser (really weird)
186200 - name : Print strategy
@@ -219,27 +233,18 @@ jobs:
219233 - name : Install pip dependencies
220234 run : sudo pip install pycryptodome
221235
222- - name : Checking if we have hostap in cache
223- uses : actions/cache/restore @v4
236+ - name : Download hostap repo
237+ uses : actions/download-artifact @v4
224238 with :
225- path : hostap
226- key : hostap-repo
227- fail-on-cache-miss : true
239+ name : hostap-repo
240+
241+ - name : untar hostap
242+ run : tar -xf hostap.tgz
228243
229244 - name : Checkout correct ref
230245 working-directory : hostap
231246 run : git checkout ${{ matrix.config.hostap_ref }}
232247
233- - name : Update certs
234- working-directory : hostap/tests/hwsim/auth_serv
235- run : |
236- ./update.sh
237- ./sha512-generate.sh
238- # Force regeneration of rsa3072-ca.key to get rsa3072-generate.sh to
239- # correctly update all the certs
240- rm rsa3072-ca.key
241- ./rsa3072-generate.sh
242-
243248 - if : ${{ matrix.config.osp_ref }}
244249 name : Checkout OSP
245250 uses : actions/checkout@v4
@@ -258,6 +263,20 @@ jobs:
258263 patch -p1 < $f
259264 done
260265
266+ - name : Update certs
267+ working-directory : hostap/tests/hwsim/auth_serv
268+ run : |
269+ mkdir -p rootCA/newcerts
270+ ./update.sh
271+ ./ec-generate.sh
272+ ./ec2-generate.sh
273+ ./sha512-generate.sh
274+ # Force regeneration of rsa3072-ca.key to get rsa3072-generate.sh to
275+ # correctly update all the certs
276+ rm rsa3072-ca.key
277+ ./rsa3072-generate.sh
278+ ./ica-generate.sh
279+
261280 - name : Apply extra patches
262281 working-directory : hostap
263282 run : |
0 commit comments