@@ -15,46 +15,47 @@ jobs:
1515 strategy :
1616 fail-fast : false
1717 matrix :
18- os : [ubuntu-22.04, windows-2019 , macOS-13 ]
18+ os : [ubuntu-22.04, windows-2022 , macOS-14 ]
1919
2020 steps :
21- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v7
2222
23- - uses : actions/setup-python@v5
23+ - uses : actions/setup-python@v7
2424 with :
2525 python-version : ' 3.13'
2626
2727 - name : Install dependencies (Windows)
2828 if : runner.os == 'Windows'
2929 run : |
30- Invoke-WebRequest https://nmap.org/npcap/dist/npcap-sdk-1.15 .zip -OutFile npcap-sdk.zip
30+ Invoke-WebRequest https://nmap.org/npcap/dist/npcap-sdk-1.16 .zip -OutFile npcap-sdk.zip
3131 Expand-Archive npcap-sdk.zip
3232 echo "NPCAP_SDK=$(Resolve-Path npcap-sdk)" >> $env:GITHUB_ENV
3333
3434 - name : Build sdist
35- if : matrix.os == 'ubuntu-20 .04'
35+ if : matrix.os == 'ubuntu-22 .04'
3636 run : |
3737 pip install build
3838 python -m build --sdist
3939
4040 - name : Build wheels
41- uses : pypa/cibuildwheel@v2.23.3
41+ uses : pypa/cibuildwheel@v4.2.0
4242 env :
43- CIBW_SKIP : ' pp * *-musllinux*'
43+ CIBW_SKIP : ' *t- * *-musllinux*'
4444 CIBW_ARCHS_MACOS : universal2
4545 CIBW_BEFORE_ALL_LINUX : >
4646 yum install -y flex bison libnl3-devel bluez-libs-devel &&
47- curl https://www.tcpdump.org/release/libpcap-1.10.5 .tar.gz -O &&
48- tar xf libpcap-1.10.5 .tar.gz &&
49- cd libpcap-1.10.5 &&
47+ curl https://www.tcpdump.org/release/libpcap-1.10.6 .tar.gz -O &&
48+ tar xf libpcap-1.10.6 .tar.gz &&
49+ cd libpcap-1.10.6 &&
5050 ./configure &&
5151 make -j2 &&
5252 make install
5353 CIBW_ENVIRONMENT_WINDOWS : NPCAP_SDK=$NPCAP_SDK
54+ CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : delvewheel repair -w {dest_dir} -v {wheel} --exclude wpcap.dll
5455 with :
5556 output-dir : dist
5657
57- - uses : actions/upload-artifact@v4
58+ - uses : actions/upload-artifact@v7
5859 with :
5960 name : wheels-${{ matrix.os }}
6061 path : dist
7475 url : https://pypi.org/p/cypcap
7576
7677 steps :
77- - uses : actions/download-artifact@v4
78+ - uses : actions/download-artifact@v8
7879 with :
7980 pattern : wheels-*
8081 merge-multiple : true
8687 packages-dir : dist
8788
8889 - name : Release
89- uses : softprops/action-gh-release@v2
90+ uses : softprops/action-gh-release@v3
9091 with :
9192 files : dist
0 commit comments