aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/msys2.yml
blob: f1252a8b9030a06c26a04dbe2f4bf7fcaa4e38d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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