Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit e657cf7

Browse files
committed
Build with dotnet
1 parent 6e9a616 commit e657cf7

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

azure-pipelines.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,37 @@ variables:
1414
- group: Xamarin-Secrets
1515
- name: Configuration
1616
value: Release
17+
DotNetVersion: 6.0.100-preview.1.21103.13
18+
DotNet.Cli.Telemetry.OptOut: true
19+
Android.Msi: https://dl.internalx.com/vsts-devdiv/Xamarin.Android/public/net6/4451481/master/05bb8e0eae11ae6a73838b13cf91ee2433169dff/Microsoft.NET.Workload.Android.11.0.200.85.msi
20+
Android.Pkg: https://dl.internalx.com/vsts-devdiv/Xamarin.Android/public/net6/4451481/master/05bb8e0eae11ae6a73838b13cf91ee2433169dff/Microsoft.NET.Workload.Android-11.0.200-ci.master.85.pkg
21+
iOS.Msi: https://bosstoragemirror.azureedge.net/wrench/main/f01fde5cd9a7ffffcdc8d241200c35988700fa00/4449408/package/Microsoft.NET.Workload.iOS.14.3.100-ci.main.1079.msi
22+
iOS.Pkg: https://bosstoragemirror.azureedge.net/wrench/main/f01fde5cd9a7ffffcdc8d241200c35988700fa00/4449408/package/notarized/Microsoft.iOS.Bundle.14.3.100-ci.main.1079.pkg
23+
1724
stages:
1825
- stage: Build
1926
jobs:
2027
- job: buildWindows
2128
pool:
2229
vmImage: windows-latest
30+
variables:
31+
LogDirectory: $(Build.ArtifactStagingDirectory)\logs
2332
steps:
24-
- task: MSBuild@1
25-
displayName: 'Build Projects\OpenTK.Android\OpenTK.Android.csproj'
26-
inputs:
27-
solution: Projects\OpenTK.Android\OpenTK.Android.csproj
28-
msbuildArguments: /restore /v:diag
33+
- powershell: |
34+
$ProgressPreference = 'SilentlyContinue'
35+
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
36+
& .\dotnet-install.ps1 -Version $(DotNetVersion) -InstallDir "$env:ProgramFiles\dotnet\" -Verbose
37+
& dotnet --list-sdks
38+
displayName: install .NET $(DotNetVersion)
39+
errorActionPreference: stop
40+
- powershell: |
41+
& dotnet tool install --global boots
42+
& boots $(Android.Msi)
43+
& boots $(iOS.Msi)
44+
displayName: install .NET workloads
45+
errorActionPreference: stop
46+
- powershell: |
47+
& dotnet build Projects\OpenTK.Android\OpenTK.Android.csproj -c Debug -bl:$(LogDirectory)\Debug.binlog
48+
& dotnet build Projects\OpenTK.Android\OpenTK.Android.csproj -c Release -bl:$(LogDirectory)\Release.binlog
49+
displayName: build samples
50+
errorActionPreference: stop

0 commit comments

Comments
 (0)