-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
204 lines (137 loc) · 6.4 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
version: 1.0.{build}
skip_commits:
message: /UPDATE_DOCS/ # Regex for matching commit message
environment:
matrix:
- job_name: Windows MSVC build
appveyor_build_worker_image: Visual Studio 2022
# - job_name: Linux GCC build and docs
# appveyor_build_worker_image: Ubuntu2004
# - job_name: Linux GCC build
# appveyor_build_worker_image: Ubuntu2004
# gcc is broken on 11.2 and less atleast. and Ubuntu 20.04 only supports up to 11.1
# - job_name: Linux Clang build
# appveyor_build_worker_image: Ubuntu2004
for:
- matrix:
only:
- job_name: Linux Clang build
init:
- sh: >-
sudo apt-get -y update
sudo apt-get -y install apt-transport-https ca-certificates gnupg software-properties-common wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -y update
sudo apt-get -y install libpng-dev ninja-build cmake libc++-dev
#sudo apt-get -y upgrade
#sudo apt -y autoremove
build_script:
- sh: >-
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
"" | sudo ./llvm.sh 15 all
sudo apt-get -y update
sudo apt-get -y install clang-15 clang++-15
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang-15 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-15 -B build
ninja -C build
test_script:
- sh: "cd build && ctest -C debug --verbose && cd .."
- matrix:
only:
- job_name: Linux GCC build
init:
- sh: >-
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates gnupg software-properties-common wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ focal main'
sudo apt-get update
sudo apt-get install -y libpng-dev gcc-11 g++-11 ninja-build cmake
build_script:
- sh: >-
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-11 -DCMAKE_CXX_COMPILER=/usr/bin/g++-11 ..
ninja
test_script:
- sh: "cd build && ctest -C debug --verbose && cd .."
- matrix:
only:
- job_name: Linux GCC build and docs
init:
- sh: >-
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
sudo apt-get -y update
sudo apt-get -y install libpng-dev gcc-11 g++-11 ninja-build cmake doxygen graphviz python3-dev python3-pip
pip3 install sphinx
pip3 install sphinx-inline-tabs
pip3 install furo
pip3 install breathe
pip3 install myst_parser
pip3 install linkify-it-py
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 90
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++
#sudo apt -y autoremove
export CC=gcc
export CXX=g++
# before_build:
# - sh: "cd docs && rm *.* && cd .."
build_script:
- sh: >-
mkdir build
cmake -G "Ninja Multi-Config" -B build
#-DDOCS:STRING=YES
ninja -C build
# after_build:
# - sh: "cd docs && git add --all && git commit -m 'UPDATE_DOCS' && cd .." # cannot commit?
test_script:
- sh: "cd build && ctest -C debug --verbose && cd .."
- matrix:
only:
- job_name: Windows MSVC build
init:
- cmd: >-
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
build_script:
- cmd: >-
git clone https://github.com/microsoft/vcpkg
cd vcpkg
bootstrap-vcpkg.bat
set VCPKG_DEFAULT_TRIPLET=x64-windows
vcpkg install libpng
vcpkg install bext-ut
cd ..
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -B build -DCMAKE_TOOLCHAIN_FILE=.\vcpkg\scripts\buildsystems\vcpkg.cmake .
cmake --build build
test_script:
- cmd:
cd build
ctest -C debug --extra-verbose
cd ..
artifacts:
- path: 'bin/*.exe'
name: Canary
deploy:
- provider: GitHub
release: Canary
description: Automatic Test build version($(APPVEYOR_BUILD_VERSION)). [Documentation](https://sebanisu.github.io/OpenVIII_CPP_WIP/applications.html#)
auth_token:
secure: 5giEwDYEP975x3C+JYDNGukTupBCPcmez7GbulvUX40/2C5cgs5ta8Gyq6IYpFmW
artifact: Canary
prerelease: true
force_update: true