File tree Expand file tree Collapse file tree 5 files changed +22
-13
lines changed Expand file tree Collapse file tree 5 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ extends:
34
34
globalSdl :
35
35
tsa :
36
36
enabled : false
37
-
38
- nugetPublishing :
39
- feeds :
40
- name : CppWinRT
41
37
42
38
stages :
43
39
- stage : build
Original file line number Diff line number Diff line change 15
15
16
16
variables :
17
17
ob_outputDirectory : ' $(Build.SourcesDirectory)\out'
18
- ob_nugetPublishing_enabled : ${{ parameters.OfficialBuild }}
19
18
PackageVersion : ${{ parameters.BuildVersion }}
20
19
21
20
steps :
59
58
- task : NuGetCommand@2
60
59
displayName : ' Build NuGet package'
61
60
inputs :
62
- command : ' pack'
63
- packagesToPack : ' nuget/Microsoft.Windows.CppWinRT.nuspec'
64
- versioningScheme : byEnvVar
65
- versionEnvVar : ' PackageVersion'
66
- 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'
67
- packDestination : $(ob_outputDirectory)\packages
61
+ command : ' custom'
62
+ arguments : ' pack nuget/Microsoft.Windows.CppWinRT.nuspec -NonInteractive -OutputDirectory $(ob_outputDirectory)\packages -Properties Configuration=release;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;target_version=$(PackageVersion) -Version $(PackageVersion) -Verbosity Detailed'
68
63
69
64
- task : onebranch.pipeline.signing@1
70
65
displayName : ' 🔒 Onebranch Signing for NuGet package'
74
69
signing_profile : external_distribution
75
70
files_to_sign : ' Microsoft.Windows.CppWinRT.*.nupkg'
76
71
search_root : $(ob_outputDirectory)\packages
72
+
73
+ - task : NuGetCommand@2
74
+ displayName : ' Publish NuGet package'
75
+ inputs :
76
+ command : ' custom'
77
+ arguments : ' push $(ob_outputDirectory)\packages\Microsoft.Windows.CppWinRT.$(PackageVersion).nupkg -NonInteractive -Source https://microsoft.pkgs.visualstudio.com/_packaging/CppWinRT/nuget/v3/index.json -ApiKey VSTS'
Original file line number Diff line number Diff line change 8
8
- job :
9
9
pool :
10
10
type : windows
11
+ isCustom : true
12
+ name : ' Azure Pipelines'
13
+ vmImage : ' windows-2022' # (or 2019)
11
14
strategy :
12
15
matrix :
13
16
test.x86 :
Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ jobs:
108
108
inputs :
109
109
command : sign
110
110
signing_profile : external_distribution
111
- files_to_sign : ' **/Microsoft.Windows.CppWinRT. *.dll'
112
- search_root : ' $(Agent.TempDirectory)\$(VsixFilename) '
111
+ files_to_sign : ' **\ *.dll'
112
+ search_root : ' $(Agent.TempDirectory)'
113
113
114
114
- task : ArchiveFiles@2
115
115
displayName : ' Repack signed VSIX contents'
Original file line number Diff line number Diff line change @@ -17,17 +17,26 @@ TEST_CASE("format")
17
17
winrt::hstring str = L" World" ;
18
18
REQUIRE (std::format (L" Hello {}" , str) == L" Hello World" );
19
19
}
20
+ }
20
21
22
+ TEST_CASE (" format_make" )
23
+ {
21
24
{
22
25
winrt::Windows::Foundation::IStringable obj = winrt::make<stringable>();
23
26
REQUIRE (std::format (L" This is {}" , obj) == L" This is a stringable object" );
24
27
}
28
+ }
25
29
30
+ TEST_CASE (" format_json" )
31
+ {
26
32
{
27
33
winrt::Windows::Data::Json::JsonArray jsonArray;
28
34
REQUIRE (std::format (L" The contents of the array are: {}" , jsonArray) == L" The contents of the array are: []" );
29
35
}
36
+ }
30
37
38
+ TEST_CASE (" format_wstring" )
39
+ {
31
40
#if __cpp_lib_format >= 202207L
32
41
{
33
42
std::wstring str = L" World" ;
You can’t perform that action at this time.
0 commit comments