-
Notifications
You must be signed in to change notification settings - Fork 526
/
azure-templates-linux-matrix.yml
34 lines (33 loc) · 1.66 KB
/
azure-templates-linux-matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
parameters:
artifactName: '' # the name of the artifact to merge this run into
buildExternals: '' # the build number to download externals from
buildPipelineType: 'both' # the type of build pipeline setup
vmImage: '' # the VM image
builds:
- name: ''
desc: ''
additionalArgs: ''
gnArgs: ''
matrix:
- arch: ''
variant: ''
docker: ''
dockerArgs: ''
target: ''
gnArgs: ''
alt: ''
jobs:
- ${{ each build in parameters.builds }}:
- ${{ each item in parameters.matrix }}:
- template: azure-templates-bootstrapper.yml
parameters:
name: ${{ replace(replace(format('native_linux_{0}_{1}_{2}_{3}_linux', item.arch, item.variant, build.name, item.alt), '__', '_'), '__', '_') }}
displayName: Linux ${{ replace(replace(replace(replace(replace(format('({0}|{1}|{2}|{3})', item.arch, item.variant, build.name, item.alt), '||', '|'), '||', '|'), '(|', '('), '|)', ')'), '|', ', ') }}
buildExternals: ${{ parameters.buildExternals }}
buildPipelineType: ${{ parameters.buildPipelineType }}
vmImage: ${{ parameters.vmImage }}
docker: ${{ item.docker }}
dockerArgs: ${{ item.dockerArgs }}
target: ${{ coalesce(item.target, 'externals-linux') }}
additionalArgs: --buildarch=${{ item.arch }} --variant=${{ coalesce(item.variant, 'linux') }}${{ build.name }} --gnArgs="\"${{ build.gnArgs }} ${{ item.gnArgs }}\"" ${{ build.additionalArgs }} ${{ item.additionalArgs }}
artifactName: ${{ parameters.artifactName }}