summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-08-27 00:45:01 +0800
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-08-30 11:09:29 +0800
commit9338067b0bcdb082bc846c65c531930c02d596ea (patch)
treee7a084105c0b4e3b2fdd768ccb0228a9d474378a /.github
parentf37f70b074b2b8ebcab08bd00d544553003be0e3 (diff)
Install pcap on Windows
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml9
1 files changed, 9 insertions, 0 deletions
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