Skip to content

Commit fab7991

Browse files
PR Validation: Install missing NET7 SDK on x86
- Set env.PROCESSOR_ARCHITECTURE to x86 to install on x86 arch - Install .NET7 only on x86 arch it already install for x64 PR Validation: Add missing `.` when checking architecture
1 parent 77373a9 commit fab7991

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

CI/job_templates/test_drawing_libraries.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
inputs:
3333
packageType: 'sdk'
3434
version: '5.x'
35+
# .NET 7.0 need to install only on x86
36+
- ${{ if and(eq(parameters.framework, 'net70'), eq(parameters.architecture, '.x86')) }}:
37+
- task: UseDotNet@2
38+
displayName: 'Install .NET7 sdk'
39+
inputs:
40+
packageType: 'sdk'
41+
version: '7.x'
42+
env:
43+
PROCESSOR_ARCHITECTURE: x86
3544
- ${{ if ne(parameters.framework, 'net60') }}:
3645
- task: DotNetCoreCLI@2
3746
displayName: Execute ${{ parameters.OSPlatform }} ${{ parameters.framework}} ${{ parameters.architecture }} Tests

0 commit comments

Comments
 (0)