mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-04 18:00:17 +00:00
Signed-off-by: Toni Uhlig <matzeton@googlemail.com> Signed-off-by: lns <matzeton@googlemail.com> Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: MSBuild
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
types: [opened, synchronize, reopened]
|
|
release:
|
|
types: [created]
|
|
jobs:
|
|
test:
|
|
name: MSBuild
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Add msbuild to PATH
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
- name: Download NuGet packages
|
|
run: msbuild windows/nDPI.sln -t:restore -p:RestorePackagesConfig=true
|
|
|
|
- name: Build libnDPI only (debug)
|
|
run: msbuild windows/nDPI.sln -t:rebuild -property:Configuration=Debug
|
|
|
|
- name: Download Npcap
|
|
run: Invoke-WebRequest -Uri 'https://npcap.com/dist/npcap-1.71.exe' -OutFile 'C:\npcap-1.71.exe'
|
|
|
|
- name: Install Npcap
|
|
run: C:\npcap-1.71.exe /S /winpcap_mode=yes
|
|
|
|
- name: Build ndpiReader (debug)
|
|
run: msbuild windows/nDPI.sln -t:rebuild -property:Configuration=Debug-ndpiReader
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: build-artifacts
|
|
path: windows/bin
|
|
retention-days: 14
|