Path: blob/main/build/azure-pipelines/product-build-macos.yml
3520 views
pr: none12trigger: none34parameters:5- name: VSCODE_QUALITY6displayName: Quality7type: string8default: insider9- name: NPM_REGISTRY10displayName: "Custom NPM Registry"11type: string12default: 'https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/npm/registry/'13- name: CARGO_REGISTRY14displayName: "Custom Cargo Registry"15type: string16default: 'sparse+https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/Cargo/index/'1718variables:19- name: NPM_REGISTRY20${{ if in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}: # disable terrapin when in VSCODE_CIBUILD21value: none22${{ else }}:23value: ${{ parameters.NPM_REGISTRY }}24- name: CARGO_REGISTRY25value: ${{ parameters.CARGO_REGISTRY }}26- name: VSCODE_QUALITY27value: ${{ parameters.VSCODE_QUALITY }}28- name: VSCODE_CIBUILD29value: ${{ in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}30- name: skipComponentGovernanceDetection31value: true32- name: ComponentDetection.Timeout33value: 60034- name: Codeql.SkipTaskAutoInjection35value: true36- name: ARTIFACT_PREFIX37value: ''3839name: "$(Date:yyyyMMdd).$(Rev:r) (${{ parameters.VSCODE_QUALITY }})"4041resources:42repositories:43- repository: 1ESPipelines44type: git45name: 1ESPipelineTemplates/1ESPipelineTemplates46ref: refs/tags/release4748extends:49template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines50parameters:51sdl:52tsa:53enabled: true54configFile: $(Build.SourcesDirectory)/build/azure-pipelines/config/tsaoptions.json55binskim:56analyzeTargetGlob: '+: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'57codeql:58runSourceLanguagesInSourceAnalysis: true59compiled:60enabled: false61justificationForDisabling: "CodeQL breaks ESRP CodeSign on macOS (ICM #520035761, githubcustomers/microsoft-codeql-support#198)"62credscan:63suppressionsFile: $(Build.SourcesDirectory)/build/azure-pipelines/config/CredScanSuppressions.json64eslint:65enabled: true66enableExclusions: true67exclusionsFilePath: $(Build.SourcesDirectory)/.eslint-ignore68sourceAnalysisPool: 1es-windows-2022-x6469createAdoIssuesForJustificationsForDisablement: false70containers:71ubuntu-2004-arm64:72image: onebranch.azurecr.io/linux/ubuntu-2004-arm64:latest73stages:74- stage: Compile75jobs:76- job: Compile77timeoutInMinutes: 9078pool:79name: ACESLabTest80os: macOS81steps:82- template: build/azure-pipelines/product-compile.yml@self8384- stage: macOS85dependsOn:86- Compile87pool:88name: ACESLabTest89os: macOS90variables:91BUILDSECMON_OPT_IN: true92jobs:93- job: macOSElectronTest94displayName: Electron Tests95timeoutInMinutes: 3096variables:97VSCODE_ARCH: arm6498steps:99- template: build/azure-pipelines/darwin/product-build-darwin.yml@self100parameters:101VSCODE_ARCH: arm64102VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}103VSCODE_TEST_ARTIFACT_NAME: electron104VSCODE_RUN_ELECTRON_TESTS: true105106- job: macOSBrowserTest107displayName: Browser Tests108timeoutInMinutes: 30109variables:110VSCODE_ARCH: arm64111steps:112- template: build/azure-pipelines/darwin/product-build-darwin.yml@self113parameters:114VSCODE_ARCH: arm64115VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}116VSCODE_TEST_ARTIFACT_NAME: browser117VSCODE_RUN_BROWSER_TESTS: true118119- job: macOSRemoteTest120displayName: Remote Tests121timeoutInMinutes: 30122variables:123VSCODE_ARCH: arm64124steps:125- template: build/azure-pipelines/darwin/product-build-darwin.yml@self126parameters:127VSCODE_ARCH: arm64128VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}129VSCODE_TEST_ARTIFACT_NAME: remote130VSCODE_RUN_REMOTE_TESTS: true131132133