Fix fames bug
[ryzomcore.git] / azure-pipelines.yml
blob9c735531baa02653a136cea6cdaf61f4ffea952b
1 jobs:
2   - job: ubuntu18
3     timeoutInMinutes: 120
4     pool:
5       vmImage: 'ubuntu-18.04'
6     steps:
7     - script: |
8         sudo apt update
9         sudo apt install -y software-properties-common
10         # sudo add-apt-repository ppa:ubuntu-toolchain-r/test
11         sudo apt update
12         sudo apt install cmake build-essential -y
13         sudo apt install gcc-8 g++-8 -y
14         sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60
15         sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60
16         sudo apt install bison autoconf automake -y
17         sudo apt install libpng-dev -y
18         sudo apt install libjpeg-dev -y
19         sudo apt install libgif-dev libfreetype6-dev -y
20         sudo apt install freeglut3-dev -y
21         sudo apt install liblua5.2-dev libluabind-dev libcpptest-dev -y
22         sudo apt install libogg-dev libvorbis-dev libopenal-dev -y
23         sudo apt install libavcodec-dev libavformat-dev libavdevice-dev libswscale-dev libpostproc-dev -y
24         sudo apt install libmysqlclient-dev -y
25         sudo apt install libxml2-dev -y
26         sudo apt install libcurl4-openssl-dev libssl-dev -y
27         sudo apt install libsquish-dev -y
28         sudo apt install liblzma-dev -y
29         sudo apt install libgsf-1-dev -y
30         sudo apt install qtbase5-dev qttools5-dev qttools5-dev-tools
31       displayName: 'Dependencies'
32     - script: |
33         mkdir build
34         cmake --version
35         cd build
36         cmake -DWITH_STATIC=ON -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=ON -DWITH_LUA51=OFF -DWITH_LUA52=ON -DWITH_RYZOM=ON -DWITH_RYZOM_SERVER=ON -DWITH_RYZOM_CLIENT=ON -DWITH_RYZOM_TOOLS=ON -DWITH_NEL_TOOLS=ON -DWITH_NELNS=ON -DWITH_NELNS_LOGIN_SYSTEM=ON -DWITH_NELNS_SERVER=ON -DWITH_QT5=ON -DWITH_LIBGSF=ON ..
37         cat CMakeCache.txt
38       displayName: 'CMake'
39     - script: |
40         cd build
41         make -j`nproc`
42       displayName: 'Make'
43   - job: ubuntu20
44     timeoutInMinutes: 120
45     pool:
46       vmImage: 'ubuntu-20.04'
47     steps:
48     - script: |
49         sudo apt update
50         sudo apt install -y software-properties-common
51         sudo apt update
52         sudo apt install cmake build-essential -y
53         sudo apt install bison autoconf automake -y
54         sudo apt install libpng-dev -y
55         sudo apt install libjpeg-dev -y
56         sudo apt install libgif-dev libfreetype6-dev -y
57         sudo apt install freeglut3-dev -y
58         sudo apt install liblua5.2-dev libluabind-dev libcpptest-dev -y
59         sudo apt install libogg-dev libvorbis-dev libopenal-dev -y
60         sudo apt install libavcodec-dev libavformat-dev libavdevice-dev libswscale-dev libpostproc-dev -y
61         sudo apt install libmysqlclient-dev -y
62         sudo apt install libxml2-dev -y
63         sudo apt install libcurl4-openssl-dev libssl-dev -y
64         sudo apt install libsquish-dev -y
65         sudo apt install liblzma-dev -y
66         sudo apt install libgsf-1-dev -y
67         sudo apt install qtbase5-dev qttools5-dev qttools5-dev-tools
68       displayName: 'Dependencies'
69     - script: |
70         mkdir build
71         cmake --version
72         cd build
73         cmake -DWITH_STATIC=ON -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=ON -DWITH_LUA51=OFF -DWITH_LUA52=ON -DWITH_RYZOM=ON -DWITH_RYZOM_SERVER=ON -DWITH_RYZOM_CLIENT=ON -DWITH_RYZOM_TOOLS=ON -DWITH_NEL_TOOLS=ON -DWITH_NELNS=ON -DWITH_NELNS_LOGIN_SYSTEM=ON -DWITH_NELNS_SERVER=ON -DWITH_QT5=ON -DWITH_LIBGSF=ON ..
74         cat CMakeCache.txt
75       displayName: 'CMake'
76     - script: |
77         cd build
78         make -j`nproc`
79       displayName: 'Make'
80   - job: windows2019
81     timeoutInMinutes: 120
82     pool:
83       vmImage: 'windows-2019'
84     steps:
85     - checkout: self
86       fetchDepth: 1
87     - task: Cache@2
88       inputs:
89         key: 'hunter-win2019-x64-rel'
90         path: "c:/.hunter/_Base/Cache"
91     - task: CmdLine@2
92       inputs:
93         script: |
94           aria2c https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe
95           7z x DXSDK_Jun10.exe -oC:\ -r -y
96           del DXSDK_Jun10.exe
97     - task: CMake@1
98       inputs:
99         workingDirectory: build.release
100         cmakeArgs: '-DCMAKE_CONFIGURATION_TYPES=Release -DHUNTER_ENABLED=ON -DHUNTER_CONFIGURATION_TYPES=Release -DFINAL_VERSION=OFF -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_RYZOM_CLIENT=ON -DWITH_DRIVER_OPENGL=ON -DWITH_DRIVER_OPENAL=ON -DWITH_DRIVER_DIRECT3D=ON -DWITH_DRIVER_XAUDIO2=ON -DDXSDK_DIR=C:/DXSDK ..'
101     - task: MSBuild@1
102       inputs:
103         solution: build.release/ALL_BUILD.vcxproj
104         maximumCpuCount: true
105         configuration: release
106         platform: 'x64'
107   - job: ubuntu18hunter
108     timeoutInMinutes: 120
109     pool:
110       vmImage: ubuntu-18.04
111     steps:
112     - checkout: self
113       fetchDepth: 0
114     - script: |
115         sudo apt-get update
116         sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libasound2-dev libgl1-mesa-dev libjack-dev libpulse-dev libxrandr-dev libxrender-dev libxxf86vm-dev
117       displayName: 'Dependencies'
118     - task: Cache@2
119       inputs:
120         key: 'hunter317-ubuntu18-rel"'
121         path: "$(Pipeline.Workspace)/.hunter/_Base/Cache"
122     - script: |
123         mkdir build.release
124         cmake --version
125         cd build.release
126         unset SYSTEM
127         export MAKEFLAGS=-j`nproc`
128         cmake -DCMAKE_BUILD_TYPE=Release -DHUNTER_ENABLED=ON -DHUNTER_CONFIGURATION_TYPES=Release -DHUNTER_ROOT="$(Pipeline.Workspace)/.hunter" -DFINAL_VERSION=OFF -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_RYZOM_CLIENT=ON -DWITH_DRIVER_OPENGL=ON -DWITH_DRIVER_OPENAL=ON ..
129       displayName: 'CMake, release'
130     - script: |
131         cd build.release
132         make -j`nproc`
133       displayName: 'Make, release'
134     #- task: PublishPipelineArtifact@1
135     #  inputs:
136     #    targetPath: build.release/bin
137     #    artifactName: RyzomUbuntu18Release
138   - job: macOS11
139     timeoutInMinutes: 120
140     pool:
141       vmImage: 'macOS-11'
142     steps:
143     - checkout: self
144       fetchDepth: 0
145     - task: Cache@2
146       inputs:
147         key: 'hunter317-macOS11-rel"'
148         path: "$(Pipeline.Workspace)/.hunter/_Base/Cache"
149     - task: CMake@1
150       inputs:
151         workingDirectory: build.release
152         cmakeArgs: '-GXcode -DCMAKE_CONFIGURATION_TYPES=Release -DHUNTER_ENABLED=ON -DHUNTER_STATUS_DEBUG=ON -DHUNTER_CONFIGURATION_TYPES=Release -DHUNTER_ROOT="$(Pipeline.Workspace)/.hunter" -DWITH_LIBXML2_ICONV=OFF -DFINAL_VERSION=OFF -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_RYZOM_CLIENT=ON -DWITH_DRIVER_OPENGL=ON -DWITH_DRIVER_OPENAL=ON -DWITH_DRIVER_DIRECT3D=OFF -DWITH_DRIVER_XAUDIO2=OFF ..'
153     - task: Xcode@5
154       inputs:
155         actions: 'build'
156         configuration: Release
157         sdk: macosx12.0
158         xcWorkspacePath: 'build.release/RyzomCore.xcodeproj'
159         scheme: 'ALL_BUILD'
160         packageApp: false
161     #- task: PublishPipelineArtifact@1
162     #  inputs:
163     #    targetPath: build.release/bin/
164     #    artifactName: RyzomClientMacOS11Release