Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: switch to hosted agents #53

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build/.azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ variables:
- name: IsReleaseBranch # Should this branch name use the release stage
value: $[or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))]
# Pool names
- name: windowsPoolName
value: 'Windows 2022-23'
- name: windowsHostedAgentImage
value: 'windows-2022'

stages:
- stage: Build
Expand All @@ -31,7 +31,7 @@ stages:
GeneratePackageOnBuild: true

pool:
name: $(windowsPoolName)
vmImage: $(windowsHostedAgentImage)

variables:
- name: PackageOutputPath # Path where nuget packages will be copied to.
Expand All @@ -50,7 +50,7 @@ stages:
- job: Publish_NuGet_External

pool:
name: $(windowsPoolName)
vmImage: $(windowsHostedAgentImage)

workspace:
clean: all # Cleanup the workspaca before starting
Expand Down
7 changes: 7 additions & 0 deletions build/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
displayName: 'Install workloads'
inputs:
script: 'dotnet workload install android ios macos maccatalyst'

- task: JavaToolInstaller@0
displayName: "Install Java SDK 11"
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'

- task: MSBuild@1
displayName: 'Restore solution packages'
Expand Down