From cbcf6b0854912ca822e6d56ee8c43429a19aa7ad Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 1 Dec 2021 20:09:24 +0200 Subject: [PATCH] Add ubuntu-18.04 hunter image to azure pipeline --- azure-pipelines.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d0b938fe3..f4450accb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -104,3 +104,34 @@ jobs: maximumCpuCount: true configuration: release platform: 'x64' + - job: ubuntu18hunter + timeoutInMinutes: 120 + pool: + vmImage: ubuntu-18.04 + steps: + - checkout: self + fetchDepth: 0 + - script: | + sudo apt-get update + 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 + displayName: 'Dependencies' + - task: Cache@2 + inputs: + key: 'hunter317-ubuntu18-rel"' + path: "$(Pipeline.Workspace)/.hunter/_Base/Cache" + - script: | + mkdir build.release + cmake --version + cd build.release + unset SYSTEM + export MAKEFLAGS=-j`nproc` + 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 .. + displayName: 'CMake, release' + - script: | + cd build.release + make -j`nproc` + displayName: 'Make, release' + #- task: PublishPipelineArtifact@1 + # inputs: + # targetPath: build.release/bin + # artifactName: RyzomUbuntu18Release