Skip to content

Commit 1f9d07a

Browse files
authored
Add a pipeline building mac console app with broker (#5322)
1 parent 9fd9500 commit 1f9d07a

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

build/template-build-and-run-all-tests.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,18 @@ jobs: #Build and stage projects
9494

9595
steps:
9696
- template: template-test-on-linux.yaml
97-
97+
98+
- job: 'BuilMacConsoleAppWithBroker'
99+
pool:
100+
vmImage: macOS-14
101+
102+
variables:
103+
runCodesignValidationInjection: false
104+
Codeql.SkipTaskAutoInjection: true
105+
106+
steps:
107+
- template: template-build-on-mac.yaml
108+
98109
- job: 'RunManagedIdentityE2ETestsOnAzureArc'
99110
displayName: 'Managed Identity E2E Tests – Azure ARC Agent'
100111
dependsOn: ['BuildAndStageProjects']

build/template-build-on-mac.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# template-build-on-mac.yaml
2+
# Build tests\devapps\MacConsoleAppWithBroker\MacConsoleAppWithBroker.csproj on macOS
3+
4+
parameters:
5+
BuildConfiguration: 'Release'
6+
7+
steps:
8+
9+
- task: NuGetToolInstaller@0
10+
displayName: 'Use latest NuGet'
11+
inputs:
12+
versionSpec: 6.x
13+
14+
- task: UseDotNet@2
15+
displayName: 'Use the latest .NET 8'
16+
inputs:
17+
version: 8.x
18+
19+
- task: DotNetCoreCLI@2
20+
displayName: 'Restore mac console app with broker'
21+
inputs:
22+
command: 'custom'
23+
custom: 'workload'
24+
arguments: 'restore ./tests/devapps/MacConsoleAppWithBroker/MacConsoleAppWithBroker.csproj'
25+
26+
- task: DotNetCoreCLI@2
27+
displayName: 'Build mac console app with broker'
28+
inputs:
29+
command: 'build'
30+
projects: |
31+
./tests/devapps/MacConsoleAppWithBroker/MacConsoleAppWithBroker.csproj

0 commit comments

Comments
 (0)