From 9338067b0bcdb082bc846c65c531930c02d596ea Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Sun, 27 Aug 2023 00:45:01 +0800 Subject: Install pcap on Windows --- .github/workflows/ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7a1e243..77ddfa6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -48,6 +48,15 @@ jobs: - name: Run clippy run: cargo clippy --all-targets --all-features -- -D warnings + - name: Install npcap on Windows + if: matrix.os == 'windows-latest' + env: + NPCAP_OEM_URL: ${{ secrets.NPCAP_OEM_URL }} + shell: bash + run: | + curl -Lf "$NPCAP_OEM_URL" -o "$TEMP/npcap-oem.exe" + "$TEMP/npcap-oem.exe" /S + - name: Run tests run: cargo test --verbose -- cgit v1.2.3