Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions build/vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ phases:
container: LinuxContainer
steps:
# Only build native assets to avoid conflicts.
- script: ./build.sh -buildNative -$(BuildConfig)
- script: ./build.sh -buildNative -$(BuildConfig) -skipRIDAgnosticAssets
displayName: Build

- task: PublishBuildArtifacts@1
Expand All @@ -49,7 +49,7 @@ phases:
- agent.os -equals Darwin
steps:
# Only build native assets to avoid conflicts.
- script: ./build.sh -buildNative -$(BuildConfig)
- script: ./build.sh -buildNative -$(BuildConfig) -skipRIDAgnosticAssets
displayName: Build

- task: PublishBuildArtifacts@1
Expand Down Expand Up @@ -89,7 +89,7 @@ phases:
condition: and(succeeded(), in(variables._SignType, 'real', 'test'))

# Only build native assets to avoid conflicts.
- script: ./build.cmd -buildNative -$(BuildConfig) -buildArch=x86
- script: ./build.cmd -buildNative -$(BuildConfig) -buildArch=x86 -skipRIDAgnosticAssets
displayName: Build

- task: MSBuild@1
Expand Down
12 changes: 12 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
"values": [],
"defaultValue": ""
},
"SkipRIDAgnosticAssets": {
"description": "Prevents RID agnostic assets in redist from being built.",
"valueType": "property",
"values": [],
"defaultValue": ""
},
"MsBuildLogging": {
"description": "MsBuild logging options.",
"valueType": "passThrough",
Expand Down Expand Up @@ -118,6 +124,12 @@
"BuildNative": "default"
}
},
"skipRIDAgnosticAssets": {
"description": "Avoid building RID agnostic assets in redist.",
"settings": {
"SkipRIDAgnosticAssets": "default"
}
},
"buildPackages": {
"description": "Builds the NuGet packages.",
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
DependsOnTargets="DownloadDnnModelFiles">
<Message Importance="High" Text="Copying external model files... @(ModelFileCopy->'%(TargetPath)')" />
<Copy SourceFiles="@(ModelFileCopy)"
Condition="'$(SkipRIDAgnosticAssets)' != 'true'"
DestinationFiles="@(ModelFileCopy->'%(TargetPath)')" />
</Target>

Expand Down