@@ -21,14 +21,14 @@ parameters:
2121
2222resources :
2323 containers :
24- - container : xenial
25- image : andrewarnott/linux-buildagent
26- - container : bionic
27- image : mcr.microsoft.com/dotnet/core/sdk:3.1-bionic
2824 - container : focal
29- image : mcr.microsoft.com/dotnet/core/sdk:3.1-focal
30- - container : archlinux
31- image : andrewarnott/archlinux
25+ image : mcr.microsoft.com/dotnet/sdk:6.0-focal
26+ - container : jammy60
27+ image : mcr.microsoft.com/dotnet/sdk:6.0-jammy
28+ - container : jammy70
29+ image : mcr.microsoft.com/dotnet/sdk:7.0-jammy
30+ - container : debian
31+ image : mcr.microsoft.com/dotnet/sdk:latest
3232
3333variables :
3434 TreatWarningsAsErrors : true
@@ -53,18 +53,16 @@ stages:
5353 - job : linux
5454 strategy :
5555 matrix :
56- # xenial:
57- # containerImage: xenial
58- # configureContainerCommand: 'sudo apt update && sudo apt-get install -y git'
59- Ubuntu_Bionic :
60- containerImage : bionic
6156 Ubuntu_Focal :
6257 containerImage : focal
63- # Arch_Linux:
64- # containerImage: archlinux
65- # configureContainerCommand: 'sudo pacman -Sy --noconfirm git dotnet-sdk openssl-1.0'
58+ Ubuntu_Jammy_60 :
59+ containerImage : jammy60
60+ Ubuntu_Jammy_70 :
61+ containerImage : jammy70
62+ Debian :
63+ containerImage : debian
6664 pool :
67- vmImage : ubuntu-20 .04
65+ vmImage : ubuntu-22 .04
6866 container : $[ variables['containerImage'] ]
6967 steps :
7068 - bash : $(configureContainerCommand)
@@ -92,7 +90,7 @@ stages:
9290 strategy :
9391 matrix :
9492 ubuntu :
95- imageName : ubuntu-20 .04
93+ imageName : ubuntu-22 .04
9694 repoDir : ' ~/git'
9795 windows :
9896 imageName : windows-2022
@@ -104,15 +102,10 @@ stages:
104102 vmImage : $(imageName)
105103 steps :
106104 - task : UseDotNet@2
107- displayName : Install .NET Core 3.1 runtime
108- inputs :
109- packageType : runtime
110- version : 3.1.x
111- - task : UseDotNet@2
112- displayName : Install .NET 6.0.301 SDK
105+ displayName : Install .NET 6.0.403 SDK
113106 inputs :
114107 packageType : sdk
115- version : 6.0.301
108+ version : 6.0.403
116109 - script : dotnet --info
117110 displayName : Show dotnet SDK info
118111 - bash : |
@@ -126,7 +119,7 @@ stages:
126119 dotnet build -c Release
127120 displayName: Build in Release mode
128121 - script : |
129- dotnet run -c Release -f netcoreapp3.1 -- --filter *GetVersionBenchmarks* --artifacts $(Build.ArtifactStagingDirectory)/benchmarks/packed/$(imageName)
122+ dotnet run -c Release -f net6.0 -- --filter *GetVersionBenchmarks* --artifacts $(Build.ArtifactStagingDirectory)/benchmarks/packed/$(imageName)
130123 workingDirectory: test/Nerdbank.GitVersioning.Benchmarks
131124 displayName: Run benchmarks (packed)
132125 - bash : |
@@ -143,7 +136,7 @@ stages:
143136 git unpack-objects < .git/objects/pack/*.pack
144137 displayName: Unpack Git repositories
145138 - script : |
146- dotnet run -c Release -f netcoreapp3.1 -- --filter '*GetVersionBenchmarks*' --artifacts $(Build.ArtifactStagingDirectory)/benchmarks/unpacked/$(imageName)
139+ dotnet run -c Release -f net6.0 -- --filter '*GetVersionBenchmarks*' --artifacts $(Build.ArtifactStagingDirectory)/benchmarks/unpacked/$(imageName)
147140 workingDirectory: test/Nerdbank.GitVersioning.Benchmarks
148141 displayName: Run benchmarks (unpacked)
149142 - task : PublishBuildArtifacts@1
0 commit comments