Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/product-build-macos.yml
3520 views
1
pr: none
2
3
trigger: none
4
5
parameters:
6
- name: VSCODE_QUALITY
7
displayName: Quality
8
type: string
9
default: insider
10
- name: NPM_REGISTRY
11
displayName: "Custom NPM Registry"
12
type: string
13
default: 'https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/npm/registry/'
14
- name: CARGO_REGISTRY
15
displayName: "Custom Cargo Registry"
16
type: string
17
default: 'sparse+https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/Cargo/index/'
18
19
variables:
20
- name: NPM_REGISTRY
21
${{ if in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}: # disable terrapin when in VSCODE_CIBUILD
22
value: none
23
${{ else }}:
24
value: ${{ parameters.NPM_REGISTRY }}
25
- name: CARGO_REGISTRY
26
value: ${{ parameters.CARGO_REGISTRY }}
27
- name: VSCODE_QUALITY
28
value: ${{ parameters.VSCODE_QUALITY }}
29
- name: VSCODE_CIBUILD
30
value: ${{ in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}
31
- name: skipComponentGovernanceDetection
32
value: true
33
- name: ComponentDetection.Timeout
34
value: 600
35
- name: Codeql.SkipTaskAutoInjection
36
value: true
37
- name: ARTIFACT_PREFIX
38
value: ''
39
40
name: "$(Date:yyyyMMdd).$(Rev:r) (${{ parameters.VSCODE_QUALITY }})"
41
42
resources:
43
repositories:
44
- repository: 1ESPipelines
45
type: git
46
name: 1ESPipelineTemplates/1ESPipelineTemplates
47
ref: refs/tags/release
48
49
extends:
50
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
51
parameters:
52
sdl:
53
tsa:
54
enabled: true
55
configFile: $(Build.SourcesDirectory)/build/azure-pipelines/config/tsaoptions.json
56
binskim:
57
analyzeTargetGlob: '+:file|$(Agent.BuildDirectory)/VSCode-*/**/*.exe;+:file|$(Agent.BuildDirectory)/VSCode-*/**/*.node;+:file|$(Agent.BuildDirectory)/VSCode-*/**/*.dll;-:file|$(Build.SourcesDirectory)/.build/**/system-setup/VSCodeSetup*.exe;-:file|$(Build.SourcesDirectory)/.build/**/user-setup/VSCodeUserSetup*.exe'
58
codeql:
59
runSourceLanguagesInSourceAnalysis: true
60
compiled:
61
enabled: false
62
justificationForDisabling: "CodeQL breaks ESRP CodeSign on macOS (ICM #520035761, githubcustomers/microsoft-codeql-support#198)"
63
credscan:
64
suppressionsFile: $(Build.SourcesDirectory)/build/azure-pipelines/config/CredScanSuppressions.json
65
eslint:
66
enabled: true
67
enableExclusions: true
68
exclusionsFilePath: $(Build.SourcesDirectory)/.eslint-ignore
69
sourceAnalysisPool: 1es-windows-2022-x64
70
createAdoIssuesForJustificationsForDisablement: false
71
containers:
72
ubuntu-2004-arm64:
73
image: onebranch.azurecr.io/linux/ubuntu-2004-arm64:latest
74
stages:
75
- stage: Compile
76
jobs:
77
- job: Compile
78
timeoutInMinutes: 90
79
pool:
80
name: ACESLabTest
81
os: macOS
82
steps:
83
- template: build/azure-pipelines/product-compile.yml@self
84
85
- stage: macOS
86
dependsOn:
87
- Compile
88
pool:
89
name: ACESLabTest
90
os: macOS
91
variables:
92
BUILDSECMON_OPT_IN: true
93
jobs:
94
- job: macOSElectronTest
95
displayName: Electron Tests
96
timeoutInMinutes: 30
97
variables:
98
VSCODE_ARCH: arm64
99
steps:
100
- template: build/azure-pipelines/darwin/product-build-darwin.yml@self
101
parameters:
102
VSCODE_ARCH: arm64
103
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
104
VSCODE_TEST_ARTIFACT_NAME: electron
105
VSCODE_RUN_ELECTRON_TESTS: true
106
107
- job: macOSBrowserTest
108
displayName: Browser Tests
109
timeoutInMinutes: 30
110
variables:
111
VSCODE_ARCH: arm64
112
steps:
113
- template: build/azure-pipelines/darwin/product-build-darwin.yml@self
114
parameters:
115
VSCODE_ARCH: arm64
116
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
117
VSCODE_TEST_ARTIFACT_NAME: browser
118
VSCODE_RUN_BROWSER_TESTS: true
119
120
- job: macOSRemoteTest
121
displayName: Remote Tests
122
timeoutInMinutes: 30
123
variables:
124
VSCODE_ARCH: arm64
125
steps:
126
- template: build/azure-pipelines/darwin/product-build-darwin.yml@self
127
parameters:
128
VSCODE_ARCH: arm64
129
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
130
VSCODE_TEST_ARTIFACT_NAME: remote
131
VSCODE_RUN_REMOTE_TESTS: true
132
133