Skip to content

Commit

Permalink
Add new build.cmd/sh options for suppressing restore, NodeJS, setting…
Browse files Browse the repository at this point in the history
… target arch and OS name, and more (dotnet#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
  • Loading branch information
natemcmaster authored Jan 31, 2019
1 parent 5a4a001 commit 6081fec
Show file tree
Hide file tree
Showing 65 changed files with 738 additions and 616 deletions.
7 changes: 3 additions & 4 deletions .azure/pipelines/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ jobs:
jobName: Windows_Build
jobDisplayName: "Build only : Windows"
agentOs: Windows
buildArgs: -all -pack
buildArgs: -ci -all -pack
artifacts:
path: artifacts/
publish: true
force: true
- path: artifacts/
includeForks: true
222 changes: 0 additions & 222 deletions .azure/pipelines/ci-official.yml

This file was deleted.

Loading

0 comments on commit 6081fec

Please sign in to comment.