@@ -263,12 +263,29 @@ jobs:
263
263
fail-fast : false
264
264
matrix :
265
265
os :
266
- - windows-2019
266
+ - windows-2022
267
267
ruby :
268
268
- 3.0.6
269
269
270
270
name : ${{ matrix.os }}
271
271
steps :
272
+ # https://github.com/actions/runner-images/issues/5143
273
+ # https://github.com/actions/runner-images/issues/9701
274
+ - name : Install components
275
+ run : |
276
+ Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
277
+ $InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
278
+ vs_installer.exe modify --installPath "$InstallPath" --add Microsoft.VisualStudio.Component.VC.Redist.MSM --norestart --nocache
279
+
280
+ echo "check program dir"
281
+ get-childitem -recurse -path '*.msm'
282
+
283
+ echo "check install path"
284
+ Set-Location $InstallPath
285
+ get-childitem -recurse -path '*.msm'
286
+
287
+
288
+
272
289
- name : Checkout omnibus
273
290
uses : actions/checkout@v4
274
291
with :
@@ -288,6 +305,20 @@ jobs:
288
305
# https://github.com/ruby/setup-ruby/tree/d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c#windows
289
306
bundler : 2.2.33
290
307
308
+ # TODO: Comment
309
+ - name : Checkout pcaprub
310
+ uses : actions/checkout@v4
311
+ with :
312
+ repository : pcaprub/pcaprub
313
+ path : pcaprub
314
+ ref : ' 5440ca93dafd15e7d3bb009fc1bb9a15e80d03f9'
315
+
316
+ - name : Compile pcaprub
317
+ run : |
318
+ cd pcaprub
319
+ bundle
320
+ rake gem
321
+
291
322
# Checkout framework
292
323
- name : Checkout metasploit-framework code
293
324
uses : actions/checkout@v4
@@ -302,6 +333,15 @@ jobs:
302
333
ls local/cache
303
334
304
335
- name : Run omnibus
336
+ shell : cmd
337
+ env :
338
+ MSYSTEM : MINGW64
305
339
run : |
306
340
cd metasploit-omnibus
307
- make
341
+
342
+ rem Don't run via `make`, as the process will be spawned under msys2 - and the ridk.cmd
343
+ rem ruby installer will forcibly kill the msys2 process before attempting to install ruby
344
+ make dependencies
345
+
346
+ rem build the metasploit-framework package
347
+ ruby bin/omnibus build metasploit-framework
0 commit comments