2020-02-15 22:01:54 +00:00
|
|
|
name: Build Windows
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
windows:
|
|
|
|
name: Build & Test
|
2022-09-22 14:38:27 +00:00
|
|
|
runs-on: windows-2022
|
|
|
|
env:
|
|
|
|
PLATFORM: x64
|
|
|
|
WIRESHARK_BASE_DIR: C:\Development
|
|
|
|
CMAKE_PREFIX_PATH: D:\a\wireshark\Qt\6.2.3\msvc2019_64
|
|
|
|
WIRESHARK_VERSION_EXTRA: -GithubActionBuild
|
2020-02-15 22:01:54 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-10-12 19:43:05 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-02-15 22:01:54 +00:00
|
|
|
- name: Choco install
|
2022-12-09 08:17:03 +00:00
|
|
|
run: cinst -y --force --no-progress asciidoctorj xsltproc docbook-bundle nsis winflexbison3 cmake
|
2020-02-15 22:01:54 +00:00
|
|
|
- name: Install strawberryperl
|
2020-11-17 14:18:12 +00:00
|
|
|
uses: shogo82148/actions-setup-perl@v1
|
|
|
|
with:
|
|
|
|
perl-version: '5.30'
|
|
|
|
distribution: strawberry
|
2020-02-15 22:01:54 +00:00
|
|
|
- name: Install Qt
|
2022-09-22 14:38:27 +00:00
|
|
|
uses: jurplel/install-qt-action@v3
|
|
|
|
with:
|
|
|
|
arch: win64_msvc2019_64
|
|
|
|
version: 6.2.3
|
|
|
|
modules: 'qt5compat'
|
2020-03-05 12:49:59 +00:00
|
|
|
- name: Add msbuild to PATH
|
2021-12-26 22:56:20 +00:00
|
|
|
uses: microsoft/setup-msbuild@v1.1
|
2020-03-05 12:49:59 +00:00
|
|
|
with:
|
2021-12-26 22:56:20 +00:00
|
|
|
vs-version: 16.8
|
2020-03-05 12:49:59 +00:00
|
|
|
- name: Set MSVC command prompt
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
2020-02-15 22:01:54 +00:00
|
|
|
- name: Mkdir
|
|
|
|
run: mkdir build
|
|
|
|
- name: Cmake
|
2022-09-22 14:38:27 +00:00
|
|
|
run: cmake -DCMAKE_SYSTEM_VERSION="10.0.20348.0" -A x64 ..
|
2020-02-15 22:01:54 +00:00
|
|
|
env:
|
|
|
|
PLATFORM: x64
|
|
|
|
WIRESHARK_BASE_DIR: C:/wireshark-libs
|
|
|
|
QT5_BASE_DIR: C:/Qt/5.12.3/msvc2017_64
|
|
|
|
working-directory: build
|
|
|
|
- name: Build
|
|
|
|
run: cmake --build . --config RelWithDebInfo
|
|
|
|
working-directory: build
|
2020-03-05 12:49:59 +00:00
|
|
|
- name: Build guides
|
2021-06-28 10:18:02 +00:00
|
|
|
run: cmake --build . --config RelWithDebInfo --target user_guide_html
|
2020-03-05 12:49:59 +00:00
|
|
|
working-directory: build
|
2020-02-15 22:01:54 +00:00
|
|
|
- name: Build test-programs
|
|
|
|
run: cmake --build . --config RelWithDebInfo --target test-programs
|
|
|
|
working-directory: build
|
|
|
|
- name: Set up Python 3.8
|
2022-10-12 19:43:05 +00:00
|
|
|
uses: actions/setup-python@v4
|
2020-02-15 22:01:54 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install pytest
|
|
|
|
run: pip install pytest pytest-xdist
|
|
|
|
- name: Run tests
|
|
|
|
env:
|
|
|
|
PYTEST_ADDOPTS: --skip-missing-programs=rawshark
|
|
|
|
run: pytest
|
|
|
|
working-directory: build
|
2020-03-05 12:49:59 +00:00
|
|
|
- name: Build Windows pkg
|
|
|
|
run: |
|
2022-09-22 14:38:27 +00:00
|
|
|
msbuild /m /p:Configuration=RelWithDebInfo wireshark_nsis_prep.vcxproj
|
|
|
|
msbuild /m /p:Configuration=RelWithDebInfo wireshark_nsis.vcxproj
|
2020-03-05 12:49:59 +00:00
|
|
|
working-directory: build
|
|
|
|
- name: Upload Windows packages
|
2022-10-12 19:43:05 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-03-05 12:49:59 +00:00
|
|
|
with:
|
2021-12-26 22:53:59 +00:00
|
|
|
name: package
|
|
|
|
path: build/packaging/nsis/*exe
|