0
0
Fork 0
mirror of https://github.com/mumble-voip/mumble.git synced 2025-03-16 21:43:45 +00:00
mumble-voip_mumble/.ci/azure-pipelines/main.yml
Robert Adam 362b092e7e
Merge PR : CI(windows): Auto-determine path to vcvars script
This way, we won't have to update the path every time we update the used Visual Studio version (and find the correct one via trial & error).
This solution makes use of Microsoft's vswhere script (see microsoft/vswhere) to locate the VS installation directory. Based on that, we assemble the required path.
2023-01-09 16:12:04 +01:00

50 lines
1.6 KiB
YAML

# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
variables:
MUMBLE_ENVIRONMENT_STORE: '$(Agent.ToolsDirectory)/MumbleBuild'
MUMBLE_ENVIRONMENT_SOURCE: 'https://dl.mumble.info/build/vcpkg'
MUMBLE_ENVIRONMENT_PATH: '$(MUMBLE_ENVIRONMENT_STORE)/$(MUMBLE_ENVIRONMENT_VERSION)'
MUMBLE_ENVIRONMENT_TOOLCHAIN: '$(MUMBLE_ENVIRONMENT_PATH)/scripts/buildsystems/vcpkg.cmake'
MUMBLE_SOURCE_COMMIT: '$(Build.SourceVersion)'
MUMBLE_SOURCE_REPOSITORY: '$(Build.SourcesDirectory)'
MUMBLE_BUILD_DIRECTORY: '$(Build.BinariesDirectory)'
# On Azure we have a secret variable called BUILD_NUMBER_TOKEN that will be referenced in the following
# YAML files. As it is set there though, we don't have to specify it here.
jobs:
- job: Windows_x64
workspace:
clean: all
timeoutInMinutes: 90
pool:
vmImage: 'windows-2022'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'windows-static-1.5.x~2022-05-17~cd7e2c9.x64'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md'
steps:
- template: steps_windows.yml
parameters:
arch: 'x64'
- job: Linux
workspace:
clean: all
pool:
vmImage: 'ubuntu-20.04'
steps:
- template: steps_linux.yml
- job: macOS
workspace:
clean: all
pool:
vmImage: 'macOS-11'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'macos-static-1.5.x~2022-05-17~cd7e2c9.x64'
steps:
- template: steps_macos.yml
parameters:
installEnvironment: true