Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Pipeline changes to build, publish, and test #1400

Merged
DefaultRyan merged 28 commits intomicrosoft:mastermicrosoft/cppwinrt:masterfrom
danlegg:user/getrou/github-masterdanlegg/cppwinrt:user/getrou/github-masterCopy head branch name to clipboard
Mar 29, 2024
Merged

Pipeline changes to build, publish, and test #1400
DefaultRyan merged 28 commits intomicrosoft:mastermicrosoft/cppwinrt:masterfrom
danlegg:user/getrou/github-masterdanlegg/cppwinrt:user/getrou/github-masterCopy head branch name to clipboard

Conversation

@danlegg
Copy link
Contributor

@danlegg danlegg commented Mar 27, 2024

  • Handcraft NuGet commands to pack and publish
  • Run unit tests on Windows-2022 image

buildProperties: 'cppwinrt_exe=$(Build.SourcesDirectory)\x86\cppwinrt\cppwinrt.exe;cppwinrt_fast_fwd_x86=$(Build.SourcesDirectory)\x86\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_x64=$(Build.SourcesDirectory)\x64\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_arm=$(Build.SourcesDirectory)\arm\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_arm64=$(Build.SourcesDirectory)\arm64\cppwinrt_fast_forwarder.lib'
packDestination: $(ob_outputDirectory)\packages
command: 'custom'
arguments: 'pack nuget/Microsoft.Windows.CppWinRT.nuspec -NonInteractive -OutputDirectory $(ob_outputDirectory)\packages -Properties Configuration=release;cppwinrt_exe=C:\__w\1\s\x86\cppwinrt\cppwinrt.exe;cppwinrt_fast_fwd_x86=C:\__w\1\s\x86\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_x64=C:\__w\1\s\x64\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_arm=C:\__w\1\s\arm\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_arm64=C:\__w\1\s\arm64\cppwinrt_fast_forwarder.lib;target_version=$(PackageVersion) -Version $(PackageVersion) -Verbosity Detailed'
Copy link
Member

@getrou getrou Mar 27, 2024

Choose a reason for hiding this comment

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

I think Build.SourcesDirectory would be preferable to "C:/__w/1/s". Was Build.SourcesDirectory not working here? I'm curious about the guid for the task as well, was NuGetCommand@2 not available or working for OneBranch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

targetPath: '$(Build.SourcesDirectory)/arm64'

- task: NuGetCommand@2
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
Copy link
Member

Choose a reason for hiding this comment

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

Did we change the type of task here, and why is the command changed from 'pack' to 'custom'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

NuGetCommand@2 works for the custom nuget commands too - I've switched back. Rather than trying to get all the input parameters to play nicely with the task I just used a custom nuget command which I copied out of a working pipeline log.

@DefaultRyan DefaultRyan merged commit 6dccf9e into microsoft:master Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.