Skip to content

Commit

Permalink
Use Private Nuget Feed for OneBranch (#4557) (#4559)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed Sep 26, 2024
1 parent 4c61684 commit 66ddc27
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .azure/OneBranch.Package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ extends:
ob_createvpack_owneralias: quicdev
ob_createvpack_description: msquic.$(Build.SourceBranchName)
ob_createvpack_versionAs: string
ob_createvpack_version: 2.4.4-$(Build.BuildId)
ob_createvpack_version: 2.4.5-$(Build.BuildId)
steps:
- task: DownloadPipelineArtifact@2
inputs:
Expand Down
7 changes: 7 additions & 0 deletions .azure/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="msquic_PublicPackages" value="https://pkgs.dev.azure.com/mscodehub/msquic/_packaging/msquic_PublicPackages/nuget/v3/index.json" />
</packageSources>
</configuration>
8 changes: 8 additions & 0 deletions .azure/obtemplates/build-winkernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ message(STATUS "Platform version: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")

set(QUIC_MAJOR_VERSION 2)
set(QUIC_FULL_VERSION 2.4.4)
set(QUIC_FULL_VERSION 2.4.5)

if (WIN32)
set(CX_PLATFORM "windows")
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "msquic"
version = "2.4.4-beta"
version = "2.4.5-beta"
edition = "2018"
authors = ["Microsoft"]
description = "Microsoft implementation of the IETF QUIC protocol"
Expand Down
1 change: 0 additions & 1 deletion scripts/onebranch-build-kernel.cmd
Original file line number Diff line number Diff line change
@@ -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%
2 changes: 1 addition & 1 deletion scripts/package-distribution.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ArtifactsBinDir = Join-Path $BaseArtifactsDir "bin"
# All direct subfolders are OS's
$Platforms = Get-ChildItem -Path $ArtifactsBinDir

$Version = "2.4.4"
$Version = "2.4.5"

$WindowsBuilds = @()
$AllBuilds = @()
Expand Down
2 changes: 1 addition & 1 deletion scripts/package-nuget.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ $DistDir = Join-Path $BaseArtifactsDir "dist"
$CurrentCommitHash = Get-GitHash -RepoDir $RootDir
$RepoRemote = Get-GitRemote -RepoDir $RootDir

$Version = "2.4.4"
$Version = "2.4.5"

$BuildId = $env:BUILD_BUILDID
if ($null -ne $BuildId) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/write-versions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $ArtifactsDir = $BuildConfig.ArtifactsDir
$SourceVersion = $env:BUILD_SOURCEVERSION;
$SourceBranch = $env:BUILD_SOURCEBRANCH;
$BuildId = $env:BUILD_BUILDID;
$VersionNumber = "2.4.4";
$VersionNumber = "2.4.5";

class BuildData {
[string]$SourceVersion;
Expand Down
2 changes: 1 addition & 1 deletion src/distribution/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleVersion</key>
<string>2.4.4</string>
<string>2.4.5</string>
<key>NSHumanReadableCopyright</key>
<string>MIT</string>
<key>CFBundleGetInfoString</key>
Expand Down
2 changes: 1 addition & 1 deletion src/inc/msquic.ver
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#endif

#ifndef VER_PATCH
#define VER_PATCH 4
#define VER_PATCH 5
#endif

#ifndef VER_BUILD_ID
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "major": 2, "minor": 4, "patch": 4 }
{ "major": 2, "minor": 4, "patch": 5 }

0 comments on commit 66ddc27

Please sign in to comment.