MSYS2: Update GitHub action
This commit is contained in:
parent
a07265f3c4
commit
aff45e6318
|
@ -9,18 +9,22 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Setup MSYS2
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: 'Setup MSYS2'
|
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
msystem: MINGW64
|
msystem: MINGW64
|
||||||
update: true
|
update: true
|
||||||
- name: Install deps
|
install: base-devel
|
||||||
run: |
|
|
||||||
echo 'Run deps script'
|
|
||||||
./tools/msys2-setup.sh --install-all --noconfirm
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
echo 'Run build script'
|
mkdir build && cd build
|
||||||
./tools/msys2-build.sh
|
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
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue