aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authormark andrews <mandrews@liveaction.com>2022-09-11 11:51:06 -0700
committerToni <matzeton@googlemail.com>2022-09-21 18:03:22 +0200
commit5d5b46e5140d046e68e95be02ecb421d330b8b32 (patch)
treebeccb90de34a6e601c9bdf5eff2c4dd1444a4021 /.github/workflows
parent03d217eae60c45288131676b736a9d7ece1baca2 (diff)
Add proj and sln for compile of dynamic x64 lib under Visual Studio 2019.
* add CI support via MSBuild Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-msbuild.yml34
-rw-r--r--.github/workflows/build.yml8
2 files changed, 38 insertions, 4 deletions
diff --git a/.github/workflows/build-msbuild.yml b/.github/workflows/build-msbuild.yml
new file mode 100644
index 000000000..289c665ac
--- /dev/null
+++ b/.github/workflows/build-msbuild.yml
@@ -0,0 +1,34 @@
+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: Build solution for release
+ run: msbuild windows/nDPI.sln -t:rebuild -property:Configuration=Release
+
+ - name: Build solution for debug
+ run: msbuild windows/nDPI.sln -t:rebuild -property:Configuration=Debug
+
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v2
+ with:
+ name: build-artifacts
+ path: x64
+ retention-days: 14
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6688322bb..c982c310f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -342,14 +342,14 @@ jobs:
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.arch, 'x86_64') && startsWith(matrix.compiler, 'clang')
run: |
sudo apt-get install ${{ matrix.compiler }}
- - name: Install Windows prerequisites
+ - name: Install Windows msys2 prerequisites
if: startsWith(matrix.os, 'windows')
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain automake1.16 automake-wrapper autoconf libtool make mingw-w64-x86_64-json-c mingw-w64-x86_64-crt-git mingw-w64-x86_64-pcre mingw-w64-x86_64-libpcap
- - name: Setup Windows prerequisites (libgcrypt)
+ - name: Setup Windows msys2 prerequisites (libgcrypt)
if: startsWith(matrix.os, 'windows') && startsWith(matrix.gcrypt, '--with-local-libgcrypt')
run: |
msys2 -c 'git clone --branch libgpg-error-1.42 https://github.com/gpg/libgpg-error'
@@ -395,11 +395,11 @@ jobs:
if: startsWith(matrix.os, 'macOS') && startsWith(matrix.arch, 'x86_64') && startsWith(matrix.compiler, 'cc')
run: |
./autogen.sh --enable-option-checking=fatal --enable-debug-messages ${{ matrix.gcrypt }} ${{ matrix.msan }} ${{ matrix.pcre }} ${{ matrix.maxminddb }} --enable-tls-sigs
- - name: Configure nDPI on Windows
+ - name: Configure nDPI on Windows msys2
if: startsWith(matrix.os, 'windows') && startsWith(matrix.arch, 'x86_64') && startsWith(matrix.compiler, 'cc')
run: |
msys2 -c './autogen.sh --enable-option-checking=fatal --enable-debug-messages --enable-tls-sigs --disable-npcap ${{ matrix.gcrypt }}'
- - name: Build nDPI on Windows
+ - name: Build nDPI on Windows msys2
if: startsWith(matrix.os, 'windows') && startsWith(matrix.arch, 'x86_64') && startsWith(matrix.compiler, 'cc')
run: |
msys2 -c 'make all'