@@ -81,6 +81,11 @@ parameters: |
81 | 81 | # The timeout, in minutes, for this job. |
82 | 82 | - name: timeout |
83 | 83 | type: number |
| 84 | + |
| 85 | + # True if this is an ARM64 job. |
| 86 | + - name: isArm64 |
| 87 | + type: boolean |
| 88 | + default: false |
84 | 89 |
|
85 | 90 | jobs: |
86 | 91 | - job: ${{ format('{0}', coalesce(parameters.jobDisplayName, parameters.image, 'unknown_image')) }} |
@@ -102,6 +107,19 @@ jobs: |
102 | 107 | value: '$(dotnetx86Path)' |
103 | 108 |
|
104 | 109 | steps: |
| 110 | + |
| 111 | + # Install the .NET SDK and Runtimes. |
| 112 | + - template: /eng/pipelines/steps/install-dotnet.yml@self |
| 113 | + parameters: |
| 114 | + debug: ${{ parameters.debug }} |
| 115 | + ${{ if parameters.isArm64 }}: |
| 116 | + architecture: arm64 |
| 117 | + # ARM64 needs to specify slightly different runtime version formats. |
| 118 | + # See the install-dotnet template docs for more info. |
| 119 | + runtimes: ['8.0', '9.0'] |
| 120 | + ${{ else }}: |
| 121 | + runtimes: [8.x, 9.x] |
| 122 | + |
105 | 123 | - ${{ if ne(parameters.prebuildSteps, '') }}: |
106 | 124 | - ${{ parameters.prebuildSteps }} # extra steps to run before the build like downloading sni and the required configuration |
107 | 125 |
|
@@ -121,6 +139,12 @@ jobs: |
121 | 139 | } |
122 | 140 | displayName: 'Verify Password' |
123 | 141 |
|
| 142 | + - ${{ if eq(parameters.buildType, 'Project') }}: |
| 143 | + - template: ../steps/ci-project-build-step.yml@self |
| 144 | + parameters: |
| 145 | + build: allNoDocs |
| 146 | + buildConfiguration: ${{ parameters.buildConfiguration }} |
| 147 | + |
124 | 148 | - ${{ if ne(parameters.configProperties, '{}') }}: |
125 | 149 | - template: ../steps/update-config-file-step.yml@self # update config.json file |
126 | 150 | parameters: |
@@ -253,33 +277,14 @@ jobs: |
253 | 277 | # it should be acceptable to just install a specific version in all cases. |
254 | 278 | # @TODO: This setup is very confusing. Ideally we should just be utilizing the dotnet installation |
255 | 279 | # earlier in the job. There has to be a cleaner way of doing this. |
256 | | - # As it stands now, we install dotnet LTS if we're running netfx tests, and the appropriate netX |
257 | | - # version if we're running netcore tests. Technically LTS is not supported by the UseDotNet task |
258 | | - # but we know we're using install-dotnet since we're on windows (for now ... this will not work |
259 | | - # forever and needs a serious rethinking). |
260 | 280 | - ${{ if ne(variables['dotnetx86RootPath'], '') }}: |
261 | | - - ${{ if startswith(parameters.targetFramework, 'net4')}}: |
262 | | - - template: ../steps/ensure-dotnet-version.yml |
263 | | - parameters: |
264 | | - installDir: "$(dotnetx86RootPath)" |
265 | | - packageType: "sdk" |
266 | | - usePreview: "false" |
267 | | - version: "LTS" |
268 | | - windowsArchitecture: "x86" |
269 | | - - ${{ else }}: |
270 | | - - script: | |
271 | | - set FrameworkVersion=${{ parameters.targetFramework }} |
272 | | - echo %FrameworkVersion% |
273 | | - set TrimmedFrameworkVersion=%FrameworkVersion:~3% |
274 | | - echo %TrimmedFrameworkVersion% |
275 | | - echo ##vso[task.setvariable variable=netVersionX86]%TrimmedFrameworkVersion% |
276 | | - displayName: "Trim dotnet version" |
277 | | - - template: ../steps/ensure-dotnet-version.yml |
278 | | - parameters: |
279 | | - installDir: "$(dotnetx86RootPath)" |
280 | | - packageType: "sdk" |
281 | | - usePreview: "false" |
282 | | - version: $(netVersionX86) |
| 281 | + # Install the .NET SDK and Runtimes for x86. |
| 282 | + - template: /eng/pipelines/steps/install-dotnet.yml@self |
| 283 | + parameters: |
| 284 | + architecture: x86 |
| 285 | + debug: ${{ parameters.debug }} |
| 286 | + installDir: $(dotnetx86RootPath) |
| 287 | + runtimes: [8.x, 9.x] |
283 | 288 |
|
284 | 289 | - template: ../steps/run-all-tests-step.yml@self |
285 | 290 | parameters: |
|