-
Notifications
You must be signed in to change notification settings - Fork 14
/
appveyor.yml
101 lines (94 loc) · 2.84 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
version: 3.0.99.{build}-{branch}
image:
- Ubuntu2004
- macOS-Monterey
- Visual Studio 2019
configuration:
- Release
# - Debug
branches:
only:
- master
- appveyor_ci
for:
-
### Windows
matrix:
only:
- image: Visual Studio 2019
environment:
global:
VSVER: 14
MAKETOOL: jom
TOOLSDIR: C:\Qt\Tools\QtCreator
QTDIR: C:\Qt\5.15.2\msvc2019_64
PLATFORM: x64
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio "%VSVER%".0\VC\vcvarsall.bat" %PLATFORM%
- set PATH=%QTDIR%\bin;%TOOLSDIR%\bin\jom;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\%PLATFORM%\;%PATH%
- set BUILD_ID="%APPVEYOR_BUILD_VERSION%_%QMAKESPEC%_%VSVER%_%PLATFORM%_%CONFIGURATION%"
build_script:
- echo %BUILD_ID%
- echo %QTDIR%
- echo "%CONFIGURATION% BUILD..."
- set SRC_DIR=%CD%
- mkdir ..\shadow_build_%BUILD_ID%
- cd ..\shadow_build_%BUILD_ID%
- qmake -v
- qmake LIBS+=-L%SRC_DIR%\dep\win\%PLATFORM% %SRC_DIR%\Saaghar.pro
- call %MAKETOOL% -j8 Makefile.%CONFIGURATION%
- call %MAKETOOL% -j8 install
- cp %CONFIGURATION%\Saaghar.exe %SRC_DIR%\Saaghar-%BUILD_ID%.exe
- cd %SRC_DIR%
- 7z a Saaghar-Win_%BUILD_ID%.zip Saaghar-Win\*
- dir
artifacts:
- path: Saaghar*.exe
name: Saaghar Executable
- path: Saaghar*.zip
name: Package
# # # remote desktop connection on init
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# # # remote desktop connection on finish and block build to not destroy VM
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
-
### Ubuntu
matrix:
only:
- image: ubuntu2004
environment:
global:
QTDIR: Qt/5.15.2/gcc_64
PLATFORM: x64
MAKETOOL: make
#APPVEYOR_VNC_PASSWORD: a@bcd22
build_script:
- sudo apt-get --yes update
- sudo apt --yes install mesa-common-dev libglu1-mesa-dev
- export PATH=~/$QTDIR/bin:$PATH
- echo $CONFIGURATION
- qmake CONFIG+=$CONFIGURATION
- $MAKETOOL -j8
# init:
# - sh: export APPVEYOR_VNC_BLOCK=true
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-vnc.sh' | bash -e -
-
### MacOS
matrix:
only:
- image: macOS-Monterey
environment:
QTDIR: Qt/5.15.2/clang_64/
PLATFORM: x64
MAKETOOL: make
#APPVEYOR_VNC_PASSWORD:
build_script:
- export PATH=~/$QTDIR/bin:$PATH
- echo $CONFIGURATION
- qmake CONFIG+=$CONFIGURATION
- $MAKETOOL -j8
# init:
# - sh: export APPVEYOR_VNC_BLOCK=true
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-vnc.sh' | bash -e -