generated from QuardCRT-platform/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (67 loc) · 2.01 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: windows
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
arch: win64_mingw
version: '6.5.3'
modules: 'qt5compat'
aqtversion: ==3.1.7
- name: Build all
run: |
lrelease *.pro
qmake -spec win32-g++
mingw32-make -j8
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
name: libsearchonweb_mingw
path: |
./release/searchonweb.dll
windows_msvc2019:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
arch: 'win64_msvc2019_64'
version: '6.5.3'
modules: 'qt5compat qtwebsockets qtserialport qtmultimedia'
aqtversion: '==3.1.7'
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
toolset: 14.29
- name: Build all
run: |
c:/Windows/system32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -File "./tools/replacer.ps1" -cc_info "msvc" -tpath ./plugininterface/plugininterface.json.temp -opath ./plugininterface/plugininterface.json
lrelease searchonweb.pro
qmake searchonweb.pro -tp vc
msbuild searchonweb.vcxproj /p:Configuration=Release /p:Platform=x64 /p:BuildInParallel=false
cp ./release/searchonweb.dll ./release/searchonweb.msvc.dll
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
name: libsearchonweb_msvc
path: |
./release/searchonweb.msvc.dll