File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -499,8 +499,10 @@ jobs:
499
499
include :
500
500
- env : i686
501
501
sys : mingw32
502
+ pcap_lib : " winpcap"
502
503
- env : x86_64
503
504
sys : mingw64
505
+ pcap_lib : " winpcap"
504
506
505
507
steps :
506
508
- name : Checkout code
@@ -528,11 +530,18 @@ jobs:
528
530
run : |
529
531
ci\install_npcap.bat
530
532
echo "PCAP_SDK_DIR=/C/Npcap-sdk" >> $env:GITHUB_ENV
533
+ if : matrix.pcap_lib == 'npcap'
534
+
535
+ - name : Install WinPcap
536
+ run : |
537
+ ci\install_winpcap.bat
538
+ echo "PCAP_SDK_DIR=/C/WpdPack" >> $env:GITHUB_ENV
539
+ if : matrix.pcap_lib == 'winpcap'
531
540
532
541
- name : Configure PcapPlusPlus
533
542
shell : msys2 {0}
534
543
run : |
535
- cmake -G "MinGW Makefiles" -DPCAP_ROOT=/C/Npcap-sdk -DLIGHT_PCAPNG_ZSTD=OFF -DPCAPPP_BUILD_COVERAGE=ON -S . -B "$BUILD_DIR"
544
+ cmake -G "MinGW Makefiles" -DPCAP_ROOT=${{ env.PCAP_SDK_DIR }} -DLIGHT_PCAPNG_ZSTD=OFF -DPCAPPP_BUILD_COVERAGE=ON -S . -B "$BUILD_DIR"
536
545
537
546
- name : Build PcapPlusPlus
538
547
shell : msys2 {0}
@@ -581,15 +590,15 @@ jobs:
581
590
- os : windows-2025
582
591
platform : " Visual Studio 17 2022"
583
592
arch : Win32
584
- pcap_lib : " npcap "
593
+ pcap_lib : " winpcap "
585
594
- os : windows-2025
586
595
platform : " Visual Studio 17 2022"
587
596
arch : " x64"
588
597
pcap_lib : " winpcap"
589
598
- os : windows-2022
590
599
platform : " Visual Studio 17 2022"
591
600
arch : " x64"
592
- pcap_lib : " npcap "
601
+ pcap_lib : " winpcap "
593
602
594
603
runs-on : ${{ matrix.os }}
595
604
steps :
Original file line number Diff line number Diff line change @@ -298,6 +298,7 @@ endif()
298
298
if (MINGW )
299
299
add_link_options (-static-libgcc -static-libstdc++ )
300
300
add_link_options (-static )
301
+ add_compile_options (-Wno-unused-function )
301
302
endif ()
302
303
303
304
if (PCAPPP_TARGET_COMPILER_MSVC )
You can’t perform that action at this time.
0 commit comments