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

Commit

Permalink
Build with dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Feb 22, 2021
1 parent 6e9a616 commit e657cf7
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,37 @@ variables:
- group: Xamarin-Secrets
- name: Configuration
value: Release
DotNetVersion: 6.0.100-preview.1.21103.13
DotNet.Cli.Telemetry.OptOut: true
Android.Msi: https://dl.internalx.com/vsts-devdiv/Xamarin.Android/public/net6/4451481/master/05bb8e0eae11ae6a73838b13cf91ee2433169dff/Microsoft.NET.Workload.Android.11.0.200.85.msi
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
iOS.Msi: https://bosstoragemirror.azureedge.net/wrench/main/f01fde5cd9a7ffffcdc8d241200c35988700fa00/4449408/package/Microsoft.NET.Workload.iOS.14.3.100-ci.main.1079.msi
iOS.Pkg: https://bosstoragemirror.azureedge.net/wrench/main/f01fde5cd9a7ffffcdc8d241200c35988700fa00/4449408/package/notarized/Microsoft.iOS.Bundle.14.3.100-ci.main.1079.pkg

stages:
- stage: Build
jobs:
- job: buildWindows
pool:
vmImage: windows-latest
variables:
LogDirectory: $(Build.ArtifactStagingDirectory)\logs
steps:
- task: MSBuild@1
displayName: 'Build Projects\OpenTK.Android\OpenTK.Android.csproj'
inputs:
solution: Projects\OpenTK.Android\OpenTK.Android.csproj
msbuildArguments: /restore /v:diag
- powershell: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
& .\dotnet-install.ps1 -Version $(DotNetVersion) -InstallDir "$env:ProgramFiles\dotnet\" -Verbose
& dotnet --list-sdks
displayName: install .NET $(DotNetVersion)
errorActionPreference: stop
- powershell: |
& dotnet tool install --global boots
& boots $(Android.Msi)
& boots $(iOS.Msi)
displayName: install .NET workloads
errorActionPreference: stop
- powershell: |
& dotnet build Projects\OpenTK.Android\OpenTK.Android.csproj -c Debug -bl:$(LogDirectory)\Debug.binlog
& dotnet build Projects\OpenTK.Android\OpenTK.Android.csproj -c Release -bl:$(LogDirectory)\Release.binlog
displayName: build samples
errorActionPreference: stop

0 comments on commit e657cf7

Please sign in to comment.