Merge pull request #465 from microsoft/user/numform/gallery_pipeline_sdk

Fix Github Public Samples Build Pipeline
This commit is contained in:
Numfor Tiapo 2022-03-02 10:33:00 -08:00 коммит произвёл GitHub
Родитель 12af7eb8b7 1eaba0faf1
Коммит 70c1ff3b45
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 13 удалений

Просмотреть файл

@ -126,7 +126,7 @@
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(MSBuildThisFileDirectory)../WinMLSamplesGallery/Models/;$(MSBuildThisFileDirectory)../../build/native/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)../WinMLSamplesGallery/Models/;$(MSBuildThisFileDirectory)../../build/native/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
@ -138,7 +138,7 @@
<OptimizeReferences>true</OptimizeReferences>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(MSBuildThisFileDirectory)../WinMLSamplesGallery/Models/;$(MSBuildThisFileDirectory)../../build/native/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)../WinMLSamplesGallery/Models/;$(MSBuildThisFileDirectory)../../build/native/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemGroup>

Просмотреть файл

@ -10,8 +10,8 @@ pool:
variables:
SamplesBin: SamplesBin
WINDOWS_WINMD: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0\Windows.winmd
WindowsTargetPlatformVersion: 10.0.18362.0
WINDOWS_WINMD: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.19041.0\Windows.winmd
WindowsTargetPlatformVersion: 10.0.19041.0
# CI trigger
trigger:
@ -65,10 +65,10 @@ jobs:
versionSpec: '5.11.0'
- task: PowerShell@2
displayName: 'Install the win 10 sdk v18362 if necessary'
displayName: 'Install the win 10 sdk v19041 if necessary'
inputs:
targetType: inline
script: if (-not (Test-Path "${ENV:programfiles(x86)}\windows Kits\10\include\10.0.18362.0\")) { choco install windows-sdk-10-version-1903-all -y }
script: choco install windows-sdk-10-version-2004-all -y
- task: PowerShell@1
displayName: OpenCV - Configure CMake
@ -219,13 +219,6 @@ jobs:
script: 'mv Samples/WinMLSamplesGallery/"WinMLSamplesGallery (Package)"/AppPackages $(Build.ArtifactStagingDirectory)\$(BuildPlatform)\$(BuildConfiguration)\AppPackages'
condition: and(succeededOrFailed(), eq(variables['BuildConfiguration'], 'Release'))
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)\$(BuildPlatform)\$(BuildConfiguration)\SharedContent'
sourceFolder: 'SharedContent'
contents: '**\*'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: Samples'
inputs: