MSYS2: Update GitHub action

This commit is contained in:
João Valverde 2023-01-12 17:33:08 +00:00
parent a07265f3c4
commit aff45e6318
2 changed files with 13 additions and 29 deletions

View File

@ -9,18 +9,22 @@ jobs:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Setup MSYS2'
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
- name: Install deps
run: |
echo 'Run deps script'
./tools/msys2-setup.sh --install-all --noconfirm
install: base-devel
- name: Build
run: |
echo 'Run build script'
./tools/msys2-build.sh
mkdir build && cd build
wget "https://raw.githubusercontent.com/wireshark/wireshark/$GITHUB_SHA/packaging/msys2/mingw-w64-wireshark-git/PKGBUILD"
makepkg-mingw --cleanbuild --syncdeps --force --install --noconfirm
- name: Show version
run: |
wireshark.exe --version
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: package
path: build/mingw-w64-*-wireshark*-any.pkg.tar.zst

View File

@ -1,20 +0,0 @@
#!/bin/bash
# Build script for MSYS2
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
mkdir build
cd build
cmake -G Ninja -DENABLE_WERROR=No .. || exit 1
ninja || exit 1
ninja test-programs || exit 1
pytest