Skip to content

Commit 3663a4c

Browse files
committed
Pushes only test instead of full build
1 parent 4a57858 commit 3663a4c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@ jobs:
3737
Expand-Archive -Path "npcap-sdk.zip" -DestinationPath "npcap-sdk"
3838
echo "LIB=$env:GITHUB_WORKSPACE\npcap-sdk\Lib\x64;$env:LIB" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
3939
40-
- name: Install WinPcap for test execution (Windows)
40+
- name: Install Npcap for test execution (Windows)
4141
if: matrix.os == 'windows-latest'
42-
run: |
43-
Invoke-WebRequest -Uri "https://www.winpcap.org/install/bin/WinPcap_4_1_3.exe" -OutFile "winpcap.exe"
44-
Start-Process -FilePath ".\winpcap.exe" -ArgumentList "/S" -NoNewWindow -Wait
42+
run: choco install npcap -y
4543

4644
- name: Run Tests
4745
run: cargo test --workspace
4846

4947
- name: Build Release Binary
48+
if: github.event_name == 'release'
5049
run: cargo build --release
5150

5251

0 commit comments

Comments
 (0)