Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL] CI: Adds .NET8 SDK support #4776

Merged
merged 12 commits into from
Oct 9, 2024
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
Loading