Skip to content

Commit

Permalink
Native AOT example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Chocholowicz committed Feb 1, 2024
1 parent 9a9805d commit 8b63279
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions samples/Algorithms/scenarios/scenario05/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ pool:
vmImage: 'ubuntu-latest'

variables:
buildConfiguration: 'Debug'
projectPath: './samples/Algorithms/src/Algorithms.Console/Algorithms.Console.csproj' # this is specific to example - in most cases not needed

steps:
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'publish'
arguments: '-r linux-x64 -c Release /p:AotMsCodeCoverageInstrumentation="true"'
workingDirectory: "$(Build.SourcesDirectory)/samples/Algorithms/src/Algorithms.Console/"
#workingDirectory: "$(Build.SourcesDirectory)/samples/Algorithms/src/Algorithms.Console/"
projects: '$(projectPath)' # this is specific to example - in most cases not needed
displayName: 'publish'

- task: DotNetCoreCLI@2
Expand All @@ -28,12 +29,6 @@ steps:
script: 'dotnet-coverage collect --output-format cobertura --output $(Agent.TempDirectory)/report.cobertura.xml ./samples/Algorithms/src/Algorithms.Console/bin/Release/net8.0/linux-x64/publish/Algorithms.Console'
displayName: 'test'

- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '$(Agent.TempDirectory)/**/*.trx'
publishRunAttachments: false

- task: PublishCodeCoverageResults@2
inputs:
summaryFileLocation: $(Agent.TempDirectory)/**/*.cobertura.xml

0 comments on commit 8b63279

Please sign in to comment.