Skip to content

Commit

Permalink
[INTERNAL] CI: Adds .NET8 SDK support (#4776)
Browse files Browse the repository at this point in the history
[INTERNAL] CI: Adds .NET8 SDK support

RISK: not all pipelines are exercised part of CI gates and might be
surprises later.
  • Loading branch information
kirankumarkolli authored Oct 9, 2024
1 parent ac78e58 commit 2b0a021
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 33 deletions.
10 changes: 8 additions & 2 deletions azure-pipelines-encryption-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ stages:
pool:
name: 'OneES'
steps:
# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos.Encryption.Custom
Expand Down
10 changes: 8 additions & 2 deletions azure-pipelines-encryption.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ stages:
name: 'OneES'

steps:
# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'sdk'
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos.Encryption
Expand Down
10 changes: 8 additions & 2 deletions azure-pipelines-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,19 @@ stages:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'sdk'
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Integration Test With Client Telemetry Service
condition: succeeded()
Expand Down
18 changes: 15 additions & 3 deletions templates/build-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ jobs:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'sdk'
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.CosmosBenchmark
Expand All @@ -44,9 +50,15 @@ jobs:
# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.CosmosBenchmark
Expand Down
10 changes: 8 additions & 2 deletions templates/build-ctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build CTL project
Expand Down
10 changes: 8 additions & 2 deletions templates/build-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ jobs:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos Internal
Expand Down
50 changes: 43 additions & 7 deletions templates/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ jobs:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos PREVIEW
Expand All @@ -46,9 +52,15 @@ jobs:
# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos.Encryption Project Ref
Expand All @@ -74,9 +86,15 @@ jobs:
# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- template: emulator-setup.yml

Expand All @@ -103,9 +121,15 @@ jobs:
# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos.Encryption.Custom Project Ref
Expand All @@ -129,9 +153,15 @@ jobs:
# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: PREVIEW Microsoft.Azure.Cosmos.Tests
Expand All @@ -156,9 +186,15 @@ jobs:
# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: PREVIEW Microsoft.Azure.Cosmos.Tests
Expand Down
10 changes: 8 additions & 2 deletions templates/build-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

# Add this Command to Include the .NET 6 SDK
# Add this Command to Include the .NET SDK and runtimes
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'runtime'
version: '6.x'

- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '6.x'
version: '8.x'

- task: DotNetCoreCLI@2
displayName: Build samples project
Expand Down
Loading

0 comments on commit 2b0a021

Please sign in to comment.