From: Jason Ish Date: Tue, 20 May 2025 17:32:35 +0000 (-0600) Subject: github-ci: cache npcap binary download X-Git-Tag: suricata-8.0.0-rc1~216 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ab87089686b45079da07c1aedf1e97102c993b8d;p=thirdparty%2Fsuricata.git github-ci: cache npcap binary download --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index f152cf04a8..86d14bba0a 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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