-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.74 KB
/
windows.yml
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
54
55
56
57
58
name: Build Windows
on: [push]
jobs:
windows:
name: Build
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Choco install
run: cinst -y --force --no-progress asciidoctorj xsltproc docbook-bundle cmake nsis
- name: Install winflexbison3
run: cinst -y --force winflexbison3 --version 2.5.18.20190508
- name: Install strawberryperl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.30'
distribution: strawberry
- name: Install Qt
uses: jurplel/install-qt-action@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
vs-version: 16.4
- name: Set MSVC command prompt
uses: ilammy/msvc-dev-cmd@v1
- name: Mkdir
run: mkdir build
- name: Cmake
run: cmake -A x64 ..
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
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Build Windows pkg
run: |
msbuild /m /p:Configuration=RelWithDebInfo nsis_package_prep.vcxproj
msbuild /m /p:Configuration=RelWithDebInfo nsis_package.vcxproj
working-directory: build
- name: Move Windows packages
run: |
mkdir exe
mv build/packaging/nsis/*exe exe/
- name: Upload Windows packages
uses: actions/upload-artifact@v1
with:
name: packages
path: exe