diff options
author | Patric Stout <truebrain@openttd.org> | 2019-04-07 12:01:32 +0200 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2020-06-05 19:36:05 +0200 |
commit | 4218ebc932950a8751146784ea5dad127bc27b10 (patch) | |
tree | 6483a0aad91205fed7c2adfec21699e1e55847b3 /azure-pipelines/templates/windows-build.yml | |
parent | b7643b1d36cb41eb6712042761c13b9819fcbe74 (diff) | |
download | openttd-4218ebc932950a8751146784ea5dad127bc27b10.tar.xz |
Fix: [AzurePipelines] switch the CI / CD to CMake too
This also means dropping Debian/jessie, as it has a CMake that is
too old (3.0), with no real path to upgrade.
Diffstat (limited to 'azure-pipelines/templates/windows-build.yml')
-rw-r--r-- | azure-pipelines/templates/windows-build.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/azure-pipelines/templates/windows-build.yml b/azure-pipelines/templates/windows-build.yml index 117dd062c..fccf62d7b 100644 --- a/azure-pipelines/templates/windows-build.yml +++ b/azure-pipelines/templates/windows-build.yml @@ -1,11 +1,16 @@ parameters: - BuildPlatform: '' + BuildArch: '' + VcpkgTargetTriplet: '' + BuildConfiguration: '' steps: +- task: CMake@1 + displayName: 'Configure' + inputs: + cmakeArgs: '.. -G "Visual Studio 15 2017" -A ${{ parameters.BuildArch }} -DCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET="${{ parameters.VcpkgTargetTriplet }}"' - task: VSBuild@1 displayName: 'Build' inputs: - solution: 'projects/openttd_vs141.sln' - platform: ${{ parameters.BuildPlatform }} + solution: build/openttd.vcxproj configuration: ${{ parameters.BuildConfiguration }} maximumCpuCount: true |