forked from TranslucentTB/TranslucentTB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
65 lines (62 loc) · 2.11 KB
/
azure-pipelines.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
pool:
vmImage: 'windows-latest'
variables:
solution: $(Build.SourcesDirectory)/TranslucentTB.sln
vcpkgArgs: --overlay-triplets=$(Build.SourcesDirectory)/vcpkg/triplets --triplet $(platform)-windows-ttb
strategy:
matrix:
'ARM64 Debug':
configuration: Debug
platform: ARM64
'ARM64 Release':
configuration: Release
platform: ARM64
'x64 Debug':
configuration: Debug
platform: x64
'x64 Release':
configuration: Release
platform: x64
steps:
- powershell: .\update-version.ps1
displayName: Update version info
- script: git pull
displayName: 'Update vcpkg ports'
workingDirectory: C:\vcpkg
- script: .\bootstrap-vcpkg.bat
displayName: 'Bootstrap vcpkg'
workingDirectory: C:\vcpkg
- script: vcpkg install $(vcpkgArgs) discord-game-sdk
displayName: 'Install Discord Game SDK'
condition: and(succeeded(), eq(variables['platform'], 'x64'))
- script: vcpkg install $(vcpkgArgs) fmt spdlog
displayName: 'Install vcpkg dependencies'
- script: vcpkg install $(vcpkgArgs) --overlay-ports=$(Build.SourcesDirectory)/vcpkg/ports --head detours gtest member-thunk rapidjson wil
displayName: 'Install vcpkg head dependencies'
- task: NuGetCommand@2
displayName: 'Restore NuGet packages'
inputs:
restoreSolution: $(solution)
- script: vcpkg integrate install
displayName: 'Integrate vcpkg'
- task: VSBuild@1
displayName: 'Build solution'
inputs:
solution: $(solution)
platform: $(platform)
configuration: $(configuration)
- publish: $(Build.SourcesDirectory)\AppPackage\bin\$(platform)\$(configuration)
artifact: 'Portable $(platform) $(configuration)'
displayName: 'Upload portable build'
- publish: $(Build.SourcesDirectory)\AppPackage\AppPackages
artifact: 'MSIX $(platform) $(configuration)'
displayName: 'Upload MSIX package'
- task: VSTest@2
displayName: 'Run unit tests'
condition: and(succeededOrFailed(), eq(variables['platform'], 'x64'))
inputs:
testAssemblyVer2: $(platform)\$(configuration)\Tests.exe
runInParallel: true
platform: $(platform)
configuration: $(configuration)
testRunTitle: '$(platform) $(configuration)'