forked from mtconnect/cppagent_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
91 lines (75 loc) · 2.39 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
version: '{build}'
branches:
only:
- master
- /.*master.*/
image:
- Ubuntu2004
- Visual Studio 2019
- macos-monterey
environment:
CPACK: False
matrix:
- SHARED: True
- SHARED: False
configuration:
- Release
#platform:
#C:\ - x86
cache:
- c:\.conan2\ -> **\conanfile.py
- c:\conan2\ -> **\conanfile.py
- /home/appveyor/.conan2 -> **/conanfile.py
- /Users/appveyor/.conan2 -> **/conanfile.py
matrix:
fast_finish: true
init:
- cmd: |-
echo %APPVEYOR_BUILD_WORKER_IMAGE%
echo %MSBUILD_FLAGS%
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
before_build:
- cmd: |-
set PATH=C:\Python39-x64\;C:\Python39-x64\Scripts;C:\Ruby30\bin;%PATH%
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
if not exist C:\conan mkdir C:\conan
if %SHARED%==True (set CONAN_PROFILE=conan/profiles/vs64shared) else (set CONAN_PROFILE=conan/profiles/vs64)
set CONAN_USER_HOME=C:\conan
rem set CPACK=True
pip install conan
conan profile detect -f
- sh: |-
export PATH=$HOME/venv3.10/bin:$PATH
if [[ $APPVEYOR_BUILD_WORKER_IMAGE = "Ubuntu2004" ]]
then
sudo apt install -y build-essential cmake gcc-11 g++-11 python3 autoconf automake
export CONAN_PROFILE=conan/profiles/gcc-appveyor
elif [[ $APPVEYOR_BUILD_WORKER_IMAGE = "macOS-Monterey" ]]
then
export CONAN_PROFILE=conan/profiles/macos
else
echo "*NIX Operating System" $APPVEYOR_BUILD_WORKER_IMAGE " Not Supported"
exit 99
fi
pip install conan
conan profile detect -f
build:
verbosity: minimal
parallel: true
build_script:
- cmd: conan build . --build=missing -pr %CONAN_PROFILE% -o shared=%SHARED% -o with_docs=False
- sh: conan build . --build=missing -pr $CONAN_PROFILE -o shared=$SHARED -o with_docs=False
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
only_commits:
files:
- CMakeLists.txt
- appveyor.yml
- conanfile.py
- src/
- test/
- cmake/
- agent/
- agent_lib/
- conan/