-
Notifications
You must be signed in to change notification settings - Fork 171
/
.appveyor.yml
123 lines (97 loc) · 2.91 KB
/
.appveyor.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: '{branch}.{build}'
skip_tags: true
image:
- Ubuntu2204
- macos
- Visual Studio 2019
matrix:
exclude:
- platform: x86
image: macOS
- platform: x86
image: Ubuntu2204
platform:
- x64
- x86
configuration: Release
branches:
only:
- main
build:
verbosity: detailed
environment:
artifactName: $(APPVEYOR_PROJECT_NAME)-$(APPVEYOR_REPO_COMMIT)-$(PLATFORM)
buildConfig: $(CONFIGURATION)
buildPlatform: $(PLATFORM)
for:
-
matrix:
only:
- image: Ubuntu2204
install:
- git submodule update --init --recursive
- export PATH="$HOME/Qt/6.7.2/gcc_64/bin:$PATH"
before_build:
- cmake --version
build_script:
- ./build_qt6.sh
after_build:
- ls
- cd build_qt6
- tar -czvf ../PE-bear.tar.gz bin/PE-bear
- cd ..
artifacts:
- path: PE-bear.tar.gz
-
matrix:
only:
- image: macOS
install:
- git submodule update --init --recursive
- export PATH="$HOME/Qt/6.6.1/macos/bin:$PATH"
- export LDFLAGS="-L/usr/local/opt/qt/lib"
- export CPPFLAGS="-I/usr/local/opt/qt/include"
- export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig"
before_build:
- cmake --version
- qmake -v
build_script:
- ./macos_wrap.sh macdeployqt
after_build:
- ls
artifacts:
- path: PE-bear.app.zip
-
matrix:
only:
- image: Visual Studio 2019
install:
- git submodule update --init --recursive
- if [%buildPlatform%]==[x64] (set QT_VER=6)
- if [%buildPlatform%]==[x64] (set QT=C:\Qt\6.7\msvc2019_64)
- if [%buildPlatform%]==[x86] (set QT_VER=5)
- if [%buildPlatform%]==[x86] (set QT=C:\Qt\5.15.2\msvc2019)
- set QT_DIR=%QT%
- set PATH=%PATH%;%QT%\bin;%QT%\lib\cmake
before_build:
- mkdir build
- cd build
build_script:
- if [%buildPlatform%]==[x64] (cmake .. -A x64 -DCOMMIT_HASH:STRING="\""%APPVEYOR_REPO_COMMIT%"\"" )
- if [%buildPlatform%]==[x86] (cmake .. -A Win32 -DCOMMIT_HASH:STRING="\""%APPVEYOR_REPO_COMMIT%"\"" )
- cmake --build . --config %buildConfig%
after_build:
- mkdir %artifactName%
- cp -r pe-bear/%buildConfig%/* %artifactName%
- cp "%QT%\bin\Qt%QT_VER%Core.dll" %artifactName%
- cp "%QT%\bin\Qt%QT_VER%Gui.dll" %artifactName%
- cp "%QT%\bin\Qt%QT_VER%Widgets.dll" %artifactName%
- mkdir %artifactName%\platforms
- mkdir %artifactName%\styles
- mkdir %artifactName%\imageformats
- cp "%QT%\plugins\platforms\qwindows.dll" %artifactName%\platforms
- cp "%QT%\plugins\imageformats\qico.dll" %artifactName%\imageformats
- if [%QT_VER%]==[5] (cp "%QT%\plugins\styles\qwindowsvistastyle.dll" %artifactName%\styles)
- if [%QT_VER%]==[6] (cp "%QT%\plugins\styles\qmodernwindowsstyle.dll" %artifactName%\styles)
artifacts:
- path: build\%artifactName%