@@ -51,12 +51,12 @@ jobs:
51
51
_configuration : Debug
52
52
_config_short : D
53
53
_includeBenchmarkData : false
54
- _targetFramework : net6 .0
54
+ _targetFramework : net8 .0
55
55
Release_Build :
56
56
_configuration : Release
57
57
_config_short : R
58
58
_includeBenchmarkData : true
59
- _targetFramework : net6 .0
59
+ _targetFramework : net8 .0
60
60
${{ if ne(parameters.customMatrixes, '') }} :
61
61
${{ insert }} : ${{ parameters.customMatrixes }}
62
62
76
76
- ${{ if and( eq(parameters.nightlyBuild, 'true'), eq(parameters.pool.vmImage, 'ubuntu-18.04')) }} :
77
77
- bash : echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(nightlyBuildRunPath):$LD_LIBRARY_PATH"
78
78
displayName : Set LD_LIBRARY_PATH for Ubuntu and CentOS to locate Native shared library in current running path
79
- - script : ${{ parameters.buildScript }} -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} /p:TestArchitectures=${{ parameters.architecture }} /p: Coverage=${{ parameters.codeCoverage }} $(testTargetFramework) /p:CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=True $(hardLink)
79
+ - script : ${{ parameters.buildScript }} -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} /p:Coverage=${{ parameters.codeCoverage }} $(testTargetFramework) /p:CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=True $(hardLink)
80
80
displayName : Build
81
81
- ${{ if eq(parameters.pool.vmImage, 'macOS-10.15') }} :
82
82
- task : Bash@3
@@ -116,15 +116,15 @@ jobs:
116
116
displayName: Clean up useless project
117
117
- script : $(dotnetPath) msbuild -restore $(nightlyBuildProjPath) /p:ReferenceTypeForTestFramework="Nuget" /p:Configuration=$(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} $(testTargetFramework)
118
118
displayName : Build Nightly-Build Project with latest package versions
119
- - script : $(dotnetPath) msbuild $(runNightlyBuildProj) /t:RunNightlyBuildTests /p:Configuration=$(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} /p:TestArchitectures=${{ parameters.architecture }} $(testTargetFramework)
119
+ - script : $(dotnetPath) msbuild $(runNightlyBuildProj) /t:RunNightlyBuildTests /p:Configuration=$(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} $(testTargetFramework)
120
120
displayName : Run Nightly Build Tests
121
121
- ${{ if eq(parameters.nightlyBuild, 'false') }} :
122
122
- ${{ if eq(parameters.innerLoop, 'false') }} :
123
123
- ${{ if and(eq(parameters.runSpecific, 'false'), eq(parameters.useVSTestTask, 'false')) }} :
124
- - script : set PATH=%PATH%;%USERPROFILE%\.nuget\packages\libtorch-cpu-win-x64\2.2.1.1\runtimes\win-x64\native;%USERPROFILE%\.nuget\packages\torchsharp\0.102.7\runtimes\win-x64\native & ${{ parameters.buildScript }} /p:Build=false -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} /p:TestArchitectures=${{ parameters.architecture }} -test -integrationTest /p:Coverage=${{ parameters.codeCoverage }} $(testTargetFramework)
124
+ - script : set PATH=%PATH%;%USERPROFILE%\.nuget\packages\libtorch-cpu-win-x64\2.2.1.1\runtimes\win-x64\native;%USERPROFILE%\.nuget\packages\torchsharp\0.102.7\runtimes\win-x64\native & ${{ parameters.buildScript }} /p:Build=false -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} -test -integrationTest /p:Coverage=${{ parameters.codeCoverage }} $(testTargetFramework)
125
125
displayName : Run All Tests.
126
126
- ${{ if and(eq(parameters.runSpecific, 'true'), eq(parameters.useVSTestTask, 'false')) }} :
127
- - script : ${{ parameters.buildScript }} /p:Build=false -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} /p:TestArchitectures=${{ parameters.architecture }} -test -integrationTest /p:TestRunnerAdditionalArguments='-trait$(spaceValue)Category=RunSpecificTest' /p:Coverage=${{ parameters.codeCoverage }} $(testTargetFramework)
127
+ - script : ${{ parameters.buildScript }} /p:Build=false -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} -test -integrationTest /p:TestRunnerAdditionalArguments='-trait$(spaceValue)Category=RunSpecificTest' /p:Coverage=${{ parameters.codeCoverage }} $(testTargetFramework)
128
128
displayName : Run Specific Tests.
129
129
- ${{ if and(eq(parameters.buildScript, 'build.cmd'), eq(parameters.useVSTestTask, 'true')) }} :
130
130
- task : VSTest@2
@@ -149,7 +149,7 @@ jobs:
149
149
publishRunAttachments : true
150
150
- ${{ if eq(parameters.innerLoop, 'true') }} :
151
151
- ${{ if eq(parameters.codeCoverage, True) }} :
152
- - script : ${{ parameters.buildScript }} /p:Build=false -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} /p:TestArchitectures=${{ parameters.architecture }} -test -integrationTest /p:TestRunnerAdditionalArguments='-notrait$(spaceValue)Category=SkipInCI' /p:Coverage=${{ parameters.codeCoverage }} $(testTargetFramework)
152
+ - script : ${{ parameters.buildScript }} /p:Build=false -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} -test -integrationTest /p:TestRunnerAdditionalArguments='-notrait$(spaceValue)Category=SkipInCI' /p:Coverage=${{ parameters.codeCoverage }} $(testTargetFramework)
153
153
displayName : Run CI Tests.
154
154
- ${{ if eq(parameters.codeCoverage, False) }} :
155
155
- template : /build/ci/send-to-helix.yml
@@ -236,5 +236,5 @@ jobs:
236
236
script : Get-ChildItem -Path '.\artifacts\bin' -Recurse | Where-Object {$_.FullName -like "*runtimes*"} | Remove-Item -Recurse -Confirm:$false -Force
237
237
displayName : Clean up runtime folder for package (Unix)
238
238
- ${{ if eq(parameters.nightlyBuild, 'false') }} :
239
- - script : ${{ parameters.buildScript }} /p:Build=false -pack -ci -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} /p:TestArchitectures=${{ parameters.architecture }} $(testTargetFramework)
239
+ - script : ${{ parameters.buildScript }} /p:Build=false -pack -ci -configuration $(_configuration) /p:TargetArchitecture=${{ parameters.architecture }} $(testTargetFramework)
240
240
displayName : Build Packages
0 commit comments