Skip to content

Commit

Permalink
Add nuget with additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger committed Jul 4, 2024
1 parent c924cd0 commit eeb12b4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
22 changes: 11 additions & 11 deletions eng/pipelines/templates/stages/vmr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,17 +312,17 @@ stages:
vmrBranch: ${{ parameters.vmrBranch }}
jobs:

- template: ../jobs/vmr-build.yml
parameters:
buildName: ${{ format('{0}_DevVersions', variables.ubuntuName) }}
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: x64
pool: ${{ parameters.pool_Linux }}
container: ${{ variables.ubuntuContainer }}
targetOS: linux
targetArchitecture: x64
useDevVersions: true # Use dev versions for CI validation of the experience. If we decide to ship assets from this leg, then we should remove this option.
#- template: ../jobs/vmr-build.yml
# parameters:
# buildName: ${{ format('{0}_DevVersions', variables.ubuntuName) }}
# isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
# vmrBranch: ${{ variables.VmrBranch }}
# architecture: x64
# pool: ${{ parameters.pool_Linux }}
# container: ${{ variables.ubuntuContainer }}
# targetOS: linux
# targetArchitecture: x64
# useDevVersions: true # Use dev versions for CI validation of the experience. If we decide to ship assets from this leg, then we should remove this option.

- template: ../jobs/vmr-build.yml
parameters:
Expand Down
6 changes: 6 additions & 0 deletions src/SourceBuild/content/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ function Build {

InitializeToolset

"$DOTNET_INSTALL_DIR/dotnet" build-server shutdown

tdnf install -y unzip || true

unzip -o -j "$scriptroot/eng/nuget-files.zip" -d "$DOTNET_INSTALL_DIR/sdk/9.0.100-preview.6.24311.23/"

# Manually unset NUGET_PACKAGES as InitializeToolset sets it unconditionally.
# The env var shouldn't be set so that the RestorePackagesPath msbuild property is respected.
unset NUGET_PACKAGES
Expand Down
4 changes: 4 additions & 0 deletions src/SourceBuild/content/eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ if ($dev) {
function Build {
InitializeToolset

& "$env:DOTNET_INSTALL_DIR\dotnet.exe" build-server shutdown

Expand-Archive -Force -Path $PSScriptRoot\nuget-files.zip -Destination $env:DOTNET_INSTALL_DIR\sdk\9.0.100-preview.6.24311.23\

# Manually unset NUGET_PACKAGES as InitializeToolset sets it unconditionally.
# The env var shouldn't be set so that the RestorePackagesPath msbuild property is respected.
$env:NUGET_PACKAGES=''
Expand Down
Binary file added src/SourceBuild/content/eng/nuget-files.zip
Binary file not shown.

0 comments on commit eeb12b4

Please sign in to comment.