From ee4a1bcfb04a61d92ce23c988469ca6f80072d5b Mon Sep 17 00:00:00 2001 From: Nick Banks Date: Tue, 24 Sep 2024 14:59:26 -0400 Subject: [PATCH] Use Private Nuget Feed for OneBranch (#4557) --- .azure/nuget.config | 7 +++++++ .azure/obtemplates/build-winkernel.yml | 8 ++++++++ scripts/onebranch-build-kernel.cmd | 1 - 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .azure/nuget.config diff --git a/.azure/nuget.config b/.azure/nuget.config new file mode 100644 index 000000000..3f2e5ecdb --- /dev/null +++ b/.azure/nuget.config @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.azure/obtemplates/build-winkernel.yml b/.azure/obtemplates/build-winkernel.yml index 0c0d406db..47ed91803 100644 --- a/.azure/obtemplates/build-winkernel.yml +++ b/.azure/obtemplates/build-winkernel.yml @@ -13,6 +13,14 @@ jobs: ob_sdl_codeSignValidation_excludes: -|**\*.sys # Disable signing requirements for KM builds ob_spgo_enabled: true # Enable SPGO steps: + - task: NuGetCommand@2 + displayName: Nuget Restore + target: windows_build_container2 + inputs: + command: 'restore' + restoreSolution: msquic.kernel.sln + feedsToUse: 'config' + nugetConfigPath: .\.azure\nuget.config - script: scripts\onebranch-build-kernel.cmd ${{ parameters.config }} x64 displayName: x64 target: windows_build_container2 diff --git a/scripts/onebranch-build-kernel.cmd b/scripts/onebranch-build-kernel.cmd index dd93a199d..5520b7cc4 100644 --- a/scripts/onebranch-build-kernel.cmd +++ b/scripts/onebranch-build-kernel.cmd @@ -1,3 +1,2 @@ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat -msbuild msquic.kernel.sln -t:restore -p:RestorePackagesConfig=true /p:Configuration=%1 /p:Platform=%2 msbuild msquic.kernel.sln -p:ONEBRANCH_BUILD=true /p:Configuration=%1 /p:Platform=%2 /p:QUIC_VER_SUFFIX=-official /p:QUIC_VER_BUILD_ID=%BUILD_BUILDID% /p:QUIC_VER_GIT_HASH=%BUILD_SOURCEVERSION%