Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 47 additions & 9 deletions .azure-pipelines/daily-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ resources:
extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: Azure-Pipelines-1ESPT-ExDShared
os: linux
pool: 1es-windows-ps-compute-m
sdl:
sourceAnalysisPool:
name: Azure-Pipelines-1ESPT-ExDShared
Expand All @@ -43,19 +41,59 @@ extends:
submodules: recursive

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

- script: dotnet restore Microsoft.Graph.sln
- task: UseDotNet@2
displayName: Set up .NET 10
inputs:
packageType: 'sdk'
version: 10.x

- task: NuGetAuthenticate@1
displayName: Authenticate to Azure Artifacts
inputs:
feedsToAuthenticate: '$(NUGET_FEED_URI)'
- powershell: |
@"
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="GraphDeveloperExperiences_Public" value="$(NUGET_FEED_URI)" />
</packageSources>
</configuration>
"@ | Set-Content -Path "$(Build.SourcesDirectory)\nuget.config" -Encoding UTF8
displayName: Create nuget.config

- script: dotnet restore Microsoft.Graph.sln --configfile nuget.config
displayName: Restore dependencies
workingDirectory: $(Build.SourcesDirectory)
Comment thread
ramsessanchez marked this conversation as resolved.

- script: dotnet build Microsoft.Graph.sln --no-restore
displayName: Build SDK
# Build each TFM sequentially to avoid OOM kills on the build agent.
# Building all TFMs in parallel exhausts memory on standard runners.
- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f netstandard2.0
displayName: Build SDK (netstandard2.0)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f netstandard2.1
displayName: Build SDK (netstandard2.1)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f net8.0
displayName: Build SDK (net8.0)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f net10.0
displayName: Build SDK (net10.0)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj --no-restore
displayName: Build test project
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet test Microsoft.Graph.sln --no-build
- script: dotnet test tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj --no-build
displayName: Run unit tests
workingDirectory: $(Build.SourcesDirectory)
Loading