Skip to content

Commit

Permalink
ci: try installing WinPcap for Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
darwindarak committed Oct 29, 2024
1 parent f8efcee commit 81f6865
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,23 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
#- target: x86_64-pc-windows-msvc
# os: windows-latest
# libpnet on windows require WinPcap to be installed
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install Windows dependencies
if: runner.os == 'Windows'
run: |
Invoke-WebRequest -UseBasicParsing https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip -OutFile "${Env:TEMP}\wpd.zip"
Expand-Archive -LiteralPath "${Env:TEMP}\wpd.zip" -DestinationPath "${Env:TEMP}\wpd"
Move-Item -LiteralPath "${Env:TEMP}\wpd\WpdPack\Lib" -Destination lib
- uses: actions/checkout@v4

- uses: taiki-e/upload-rust-binary-action@v1
with:
include: LICENSE-MIT,LICENSE-APACHE,README.md
Expand Down

0 comments on commit 81f6865

Please sign in to comment.