/
.appveyor.yml
130 lines (102 loc) · 3.92 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
124
125
126
127
128
129
130
environment:
matrix:
- job_name: Windows
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
configuration: Debug
platform: x64
- job_name: Windows
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
configuration: Release
platform: x64
- job_name: Windows
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
configuration: Retail
platform: x64
- job_name: Linux
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
buildcfg: debug64
- job_name: Linux
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
buildcfg: release64
- job_name: Linux
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
buildcfg: retail64
- job_name: OSX
APPVEYOR_BUILD_WORKER_IMAGE: macOS-monterey
buildcfg: debug64
- job_name: OSX
APPVEYOR_BUILD_WORKER_IMAGE: macOS-monterey
buildcfg: release64
- job_name: OSX
APPVEYOR_BUILD_WORKER_IMAGE: macOS-monterey
buildcfg: retail64
shallow_clone: true
install:
- git submodule init
- git submodule update
for:
# ======================================
# Windows
# ======================================
-
matrix:
only:
- job_name: Windows
- QTDIR: C:\Qt\6.4\msvc2019_64
init:
- set QTDIR_VS2019_x64=C:\Qt\6.4\msvc2019_64
- set QTDIR_VS2019_x86=C:\Qt\6.4\msvc2019
- set PATH=C:\projects\MTuner\luaforwindows\files;C:\Qt\6.4\msvc2019_64\bin;%PATH%
- git clone --recursive --depth 1 https://github.com/milostosic/MTuner MTuner
- git clone --depth 1 https://github.com/rjpcomputing/luaforwindows luaforwindows
install:
- MTuner\build\tools\bin\windows\genie.exe --file=MTuner\src\MTuner\genie\genie.lua vs2019
build: MTuner/.build/windows/vs2019/MTuner/projects/MTuner.sln
# ======================================
# Linux
# ======================================
-
matrix:
only:
- job_name: Linux
init:
- sudo apt-get update
- sudo apt-get install -y lua5.3 build-essential libgl1-mesa-dev
- export QTDIR="$HOME/Qt/6.4/gcc_64"
- export PATH="$HOME/Qt/6.4/gcc_64/bin:$HOME/Qt/6.4/gcc_64/libexec:/home/appveyor/Qt/6.4/gcc_64/libexec:$PATH"
- export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$HOME/Qt/6.4/gcc_64/lib/pkgconfig"
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/appveyor/Qt/6.4/gcc_64/lib/pkgconfig
- export QTDIR_GMAKE_x64="$HOME/Qt/6.4/gcc_64"
- export QTDIR_GMAKE_x86="$HOME/Qt/6.4/gcc_64"
- git clone --recursive --depth 1 https://github.com/milostosic/MTuner MTuner
- git clone --depth 1 https://github.com/bkaradzic/GENie GENie # build GENie from source: `GLIBC_2.29' not found
- cd GENie && make && cd ..
install:
- ./GENie/bin/linux/genie --file=MTuner/src/MTuner/genie/genie.lua --gcc=linux-gcc-9 gmake
build_script:
- cd MTuner/.build/linux/gcc-9/MTuner/projects/
- make config=${buildcfg}
# ======================================
# OSX
# ======================================
-
matrix:
only:
- job_name: OSX
init:
- if [ ! -d ../vcpkg ]; then git clone https://github.com/microsoft/vcpkg.git ../vcpkg ; fi
- "(cd ../vcpkg && git pull && ./bootstrap-vcpkg.sh)"
- export VCPKG_DIR=`dirname $(pwd)/../vcpkg/vcpkg`
- export QTDIR="/usr/local/Cellar/qt/6.5.1_3/"
- export PATH="/usr/local/Cellar/qt/6.5.1_3/bin:/usr/local/Cellar/qt/6.5.1_3/share/qt/libexec:$PATH"
- export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/Cellar/qt/6.5.1_3/lib/pkgconfig"
- export QTDIR_GMAKE_x64="/usr/local/Cellar/qt/6.5.1_3/"
- export QTDIR_GMAKE_x86="/usr/local/Cellar/qt/6.5.1_3/"
- brew update
- brew install lua qt6
- git clone --recursive --depth 1 https://github.com/milostosic/MTuner MTuner
install:
- ./MTuner/build/tools/bin/darwin/genie --file=MTuner/src/MTuner/genie/genie.lua --gcc=osx gmake
build_script:
- cd MTuner/.build/osx/clang/MTuner/projects/
- make config=${buildcfg}