Skip to content

Commit 0eea5c8

Browse files
authored
CI: windows, remove 2019, add 2025 (#1857)
* CI: windows, remove 2019, add 2025 * fix CI * only need 2025 * more npcap in the matrix
1 parent 8b7fef4 commit 0eea5c8

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.github/workflows/build_and_test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -578,15 +578,11 @@ jobs:
578578
strategy:
579579
matrix:
580580
include:
581-
- os: "windows-2019"
582-
platform: "Visual Studio 16 2019"
583-
arch: "x64"
584-
pcap_lib: "npcap"
585-
- os: windows-2019
586-
platform: "Visual Studio 16 2019"
581+
- os: windows-2025
582+
platform: "Visual Studio 17 2022"
587583
arch: Win32
588-
pcap_lib: "winpcap"
589-
- os: windows-2022
584+
pcap_lib: "npcap"
585+
- os: windows-2025
590586
platform: "Visual Studio 17 2022"
591587
arch: "x64"
592588
pcap_lib: "winpcap"

.github/workflows/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ jobs:
266266
visual-studio:
267267
strategy:
268268
matrix:
269-
os: [ windows-2019, windows-2022 ]
269+
os: [ windows-2025 ]
270270
arch: [ Win32, x64 ]
271271
configuration: [ Debug, Release ]
272272

@@ -289,7 +289,7 @@ jobs:
289289
290290
- name: Configure PcapPlusPlus
291291
run: |
292-
$platform = if ("${{ matrix.os }}" -eq "windows-2019") { "Visual Studio 16 2019" } else { "Visual Studio 17 2022" }
292+
$platform = "Visual Studio 17 2022"
293293
cmake -A ${{ matrix.arch }} -G "$platform" -DPCAP_ROOT=${{ env.PCAP_SDK_DIR }} -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DPCAPPP_PACKAGE=ON -S . -B "$env:BUILD_DIR"
294294
295295
- name: Build PcapPlusPlus

cmake/package/READMEs/README.release.win.vs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ In order to compile your application with these binaries you need to:
2424
- In addition make sure that the package you downloaded matches the configuration you need: Win32 / x64 and Debug / Release
2525
- Make sure you have WinPcap or Npcap Developer's pack installed (WinPcap Dev Pack can be downloaded from https://www.winpcap.org/devel.htm, Npcap SDK can be downloaded from https://nmap.org/npcap/#download)
2626
- If your application uses CMake, you can add `PcapPlusPlus_ROOT=<PACKAGE_DIR>`, `PCAP_ROOT=<WinPcap_OR_Npcap_DIR>` and `Packet_ROOT=<WinPcap_OR_Npcap_DIR>``
27-
when running CMake. For example: if you downloaded the package for VS 2019, x64 and Release, you need to run the following commands:
28-
- `cmake -A x64 -G "Visual Studio 16 2019" -S . -B build -DPcapPlusPlus_ROOT=<PACKAGE_DIR> -DPCAP_ROOT=<WinPcap_OR_Npcap_DIR> -DPacket_ROOT=<WinPcap_OR_Npcap_DIR>`
27+
when running CMake. For example: if you downloaded the package for VS 2022, x64 and Release, you need to run the following commands:
28+
- `cmake -A x64 -G "Visual Studio 17 2022" -S . -B build -DPcapPlusPlus_ROOT=<PACKAGE_DIR> -DPCAP_ROOT=<WinPcap_OR_Npcap_DIR> -DPacket_ROOT=<WinPcap_OR_Npcap_DIR>`
2929
- `cmake --build build --config Release`
3030

3131

0 commit comments

Comments
 (0)