diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 754df58..5910437 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,10 +56,15 @@ jobs: run: | brew update brew install libpcap - - name: Install libpcap on Windows + - name: Install npcap on Windows if: matrix.os == 'windows-latest' + env: + NPCAP_OEM_URL: ${{ secrets.NPCAP_OEM_URL }} run: | - choco install wireshark && choco install winpcap + Invoke-WebRequest -Uri "$env:NPCAP_OEM_URL" -OutFile "$env:TEMP/npcap-oem.exe" + # for this ridiculous `&` syntax alone, I'd rather use COBOL than Powershell + # see https://stackoverflow.com/a/1674950/5637701 + & "$env:TEMP/npcap-oem.exe" /S - name: Submodule update run: git submodule update --init --recursive shell: bash