]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: cache npcap binary download
authorJason Ish <jason.ish@oisf.net>
Tue, 20 May 2025 17:32:35 +0000 (11:32 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 28 May 2025 17:08:05 +0000 (19:08 +0200)
.github/workflows/builds.yml

index f152cf04a81f289760ba6ad7c68f2065b5ac13aa..86d14bba0a9bf95d58c11be8aaa22987457a4678 100644 (file)
@@ -2809,6 +2809,11 @@ jobs:
         with:
           path: ~/.cargo/registry
           key: cargo-registry
+      - name: Cache npcap
+        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
+        with:
+          path: /npcap-bin
+          key: npcap-bin-100
       - uses: msys2/setup-msys2@v2
         with:
           msystem: MINGW64
@@ -2827,10 +2832,12 @@ jobs:
       - run: tar xf prep/suricata-update.tar.gz
       - name: Npcap DLL
         run: |
-          curl -sL -O https://nmap.org/npcap/dist/npcap-1.00.exe
-          7z -y x -o/npcap-bin npcap-1.00.exe
-          # hack: place dlls in cwd
-          cp /npcap-bin/*.dll .
+          if ! test -e /npcap-bin; then
+              curl -sL -O https://nmap.org/npcap/dist/npcap-1.00.exe
+              7z -y x -o/npcap-bin npcap-1.00.exe
+          fi
+      - name: Place NPcap dll's in curent directory 
+        run: cp /npcap-bin/*.dll .
       - name: Npcap SDK
         run: |
           curl -sL -O https://nmap.org/npcap/dist/npcap-sdk-1.06.zip