summaryrefslogtreecommitdiffstats
path: root/.github/workflows/msys2.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /.github/workflows/msys2.yml
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/msys2.yml')
-rw-r--r--.github/workflows/msys2.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml
new file mode 100644
index 0000000..f1252a8
--- /dev/null
+++ b/.github/workflows/msys2.yml
@@ -0,0 +1,53 @@
+name: Build MSYS2
+
+on: [push]
+
+jobs:
+ msys2-ucrt64:
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+ - name: Setup MSYS2
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: UCRT64
+ update: true
+ install: base-devel
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Install dependencies
+ run: tools/msys2-setup.sh --install-all --noconfirm
+ - name: Build
+ run: |
+ mkdir build && cd build
+ cmake -G Ninja -DFETCH_lua=Yes ..
+ ninja
+ ninja test
+ ninja wireshark_nsis_prep
+ ninja wireshark_nsis
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: nsis-installer
+ path: build/packaging/nsis/wireshark-*-x64.exe
+
+ install-nsis:
+ runs-on: windows-latest
+ needs: msys2-ucrt64
+ steps:
+ - name: Download installer
+ uses: actions/download-artifact@v3
+ with:
+ name: nsis-installer
+ path: downloads
+ - name: Run installer
+ working-directory: downloads
+ run: |
+ Get-ChildItem -Path wireshark-*-x64.exe | ForEach-Object {
+ Start-Process $_.FullName -ArgumentList '/S /D=C:\Wireshark' -Wait
+ }
+ - name: Show version
+ run: C:\Wireshark\wireshark.exe --version
+