Skip to content

Commit 6081fec

Browse files
authored
Add new build.cmd/sh options for suppressing restore, NodeJS, setting target arch and OS name, and more (#7137)
Add new command line parameters for working with the project: * `-NoBuild`, `-NoRestore` - these already existed, but users found it hard to discover this powershell syntax: '-build:$false' * `-Arch`/`--arch` - set the target CPU architecture to build. Defaults to x64 * `--os-name` - on non-Windows builds, manually specify if the build should target Alpine. generic Linux, or MacOS * Rename flags used to build specific project types. The pattern now is `--build-$(group)` or `--no-build-$(group)` (In PowerShell its `-Build$(Group)` or `-NoBuild$(Group). Example: -NoBuildJava Changes to build definitions: * Update the ci build definition to build all supported architectures * Support publishing multiple artifacts per job Other changes: * `-NoBuild` implies `-NoRestore` * Add new properties, `TargetArchitecture`, `TargetOsName`, and `TargetRuntimeIdentifier` * Replace usages of `SharedFxRid` with these new properties * To make `--no-build-nodejs` actually work, replaced Components.Browser.JS.csproj with Components.Browser.JS.npmproj * Fix errors when building for win-arm on a clean machine * Fix a few other project errors, like using the wrong syntax for DefaultItemExcludes, or using the wrong Platform value for x86
1 parent 5a4a001 commit 6081fec

File tree

65 files changed

+738
-616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+738
-616
lines changed

.azure/pipelines/benchmarks.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ jobs:
99
jobName: Windows_Build
1010
jobDisplayName: "Build only : Windows"
1111
agentOs: Windows
12-
buildArgs: -all -pack
12+
buildArgs: -ci -all -pack
1313
artifacts:
14-
path: artifacts/
15-
publish: true
16-
force: true
14+
- path: artifacts/
15+
includeForks: true

.azure/pipelines/ci-official.yml

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)