Skip to content

Commit

Permalink
Custom host release changes (#3838)
Browse files Browse the repository at this point in the history
* modifying nuget.config

* adding to official

* official build

* show up pls

* trying agani

* fixing this

* trying again

* see if this works

* idk man

* lmao bro

* adding nuget key with protocol

* changing pool

* remove protocol change

* removing pool change

* ignoring warning

* updating sccignore

* adding yml dependency

* adding eng repository

* moving resources to the top

* adding 1es repository and switchign to windows pool

* fixign spacing

* tryign diff formatting

* adding pool tag instead

* cleaning up branch

* adding trigger and finding pipeline utilities

* removing extra space

* trying without extra dash

* printint out current dir

* updating spacing

* i think we are in root alr

* adding pr trigger and cleaning up pr

* reverting files back to normal

* reverting code mirror back to normal

* forgot to remove file

* updating pipeline utilitites

* modifying name and pr trigger

* changes to code mirror

* removing extra directory

* removing extra code mirror step
  • Loading branch information
aishwaryabh authored Sep 25, 2024
1 parent 7b7abaf commit 16c1f35
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
jobs:
trigger:
branches:
include:
- feature/oop-host
paths:
include:
- ./host/src/**

pr:
branches:
include:
- feature/oop-host
paths:
include:
- ./host/src/**

resources:
repositories:
- repository: eng
type: git
name: engineering
ref: refs/tags/release

jobs:
- job: BuildCoreToolsHostWindows
displayName: '[Windows] Build CoreToolsHost'
pool:
vmImage: 'windows-latest'

variables:
- template: /ci/variables/cfs.yml@eng

templateContext:
outputParentDirectory: $(Build.ArtifactStagingDirectory)
Expand All @@ -12,11 +39,10 @@ jobs:
artifact: _coreToolsHostPackagesWindows

steps:
- task: UseDotNet@2
displayName: Install .NET SDK from global.json
inputs:
useGlobalJson: true

- pwsh: |
Import-Module "./pipelineUtilities.psm1" -Force
Install-Dotnet
displayName: 'Install .NET 9'
- task: DotnetCoreCLI@2
displayName: Dotnet Publish (win-x64)
inputs:
Expand All @@ -39,7 +65,7 @@ jobs:
displayName: Copy files (win-x64)
inputs:
SourceFolder: $(Build.SourcesDirectory)/pkg_output/windows/win-x64
# Publish output will include many other files. We only need func.exe, pdb & nethost.dll
# Publish output will include many other files. We only need func.exe & nethost.dll
Contents: |
func.exe
nethost.dll
Expand All @@ -49,15 +75,15 @@ jobs:
displayName: Copy files (win-arm64)
inputs:
SourceFolder: $(Build.SourcesDirectory)/pkg_output/windows/win-arm64
# Publish output will include many other files. We only need func.exe, pdb & nethost.dll
# Publish output will include many other files. We only need func.exe & nethost.dll
Contents: |
func.exe
nethost.dll
TargetFolder: $(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows/win-arm64

- task: PublishPipelineArtifact@1
displayName: 'Publish CoreToolsHost packages artifact'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows'
artifact: '_coreToolsHostPackagesWindows'
publishLocation: 'pipeline'
artifact: 'drop-coretools-host-windows'
publishLocation: 'pipeline'
4 changes: 2 additions & 2 deletions pipelineUtilities.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ $DotnetSDKVersionRequirements = @{
}
# Update .NET 9 patch once .NET 9 has been released out of preview
'9.0' = @{
MinimalPatch = '100-preview.6.24328.19'
DefaultPatch = '100-preview.6.24328.19'
MinimalPatch = '100-rc.1.24452.12'
DefaultPatch = '100-rc.1.24452.12'

}
}
Expand Down

0 comments on commit 16c1f35

Please sign in to comment.