Skip to content

Introducing official x86 CI build #1306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 25, 2018
Merged

Conversation

artidoro
Copy link
Contributor

@artidoro artidoro commented Oct 18, 2018

Fixes #1295.

Adding x86 official build. I tested the official build directly on VSTS and it succeeded. I also created a x86 App locally and tested that the nuget packages published to VSTS by the build worked.

@artidoro artidoro added the Build Build related issue label Oct 18, 2018
@artidoro artidoro changed the title WIP: Introducing x86 CI builds Introducing official x86 CI builds Oct 18, 2018
@artidoro artidoro changed the title Introducing official x86 CI builds Introducing official x86 CI build Oct 18, 2018
@tannergooding
Copy link
Member

@eerhardt, do you know what it would take to download the correct test host, so we can actually run tests during CI?

@artidoro
Copy link
Contributor Author

@tannergooding I asked him earlier, and apparently it's just a question of downloading the .NET Core x86 SDK. And it should be done by conditionally calling init-tools.cmd with

set DOTNET_ZIP_NAME=dotnet-sdk-%DOTNET_VERSION%-win-x64.zip

replacing x64 with x86 depending on the architecture.

I will post a second PR, as suggested by Eric, so that the changes are separated.

continueOnError: false
condition: and(succeeded(), in(variables._SignType, 'real', 'test'))

- script: ./build.cmd -$(BuildConfig) -buildArch=x86
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only be building the native assets on the Windows_x86 leg. See the Linux and OSX legs.

script: ./build.sh -buildNative -$(BuildConfig)

The reason for this is because we don't want the IL assets to collide/conflict. Each leg needs to build a unique set of assets.

Today:
OSX: builds the OSX native assets.
Linux: builds the Linux native assets
Windows: builds Windows x64 native assets, and the managed assets.

This new leg should only be building the Windows x86 native assets.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing that out! I changed the script so that it builds native assets only on this leg.

inputs:
pathToPublish: $(Build.SourcesDirectory)/bin/obj/packages
artifactName: PackageAssets
artifactType: container

################################################################################
- phase: Windows_x86
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this one be Windows_x64?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's a good point, I will change the name so that it's clearer.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@artidoro artidoro closed this Oct 23, 2018
@artidoro artidoro reopened this Oct 23, 2018
Copy link
Member

@tannergooding tannergooding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of nits/questions. Otherwise, LGTM.

@artidoro artidoro merged commit 106a84c into dotnet:master Oct 25, 2018
@artidoro artidoro deleted the addx86build branch January 5, 2019 00:02
@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Build Build related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants