forked from microsoft/STL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnative-build-test.yml
47 lines (45 loc) · 1.36 KB
/
native-build-test.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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
parameters:
- name: targetPlatform
type: string
- name: vsDevCmdArch
type: string
- name: buildBenchmarks
type: boolean
default: true
- name: asanBuild
type: boolean
default: false
- name: numShards
type: number
default: 8
# Parameters to pass to ctest to select the test(s) to run
- name: testSelection
type: string
# Exclude "stlasan" test by default
default: '-E stlasan'
jobs:
- job: '${{ parameters.targetPlatform }}'
strategy:
parallel: ${{ parameters.numShards }}
timeoutInMinutes: 30
steps:
- script: |
if exist "$(tmpDir)" (rmdir /S /Q $(tmpDir))
mkdir $(tmpDir)
displayName: 'Setup TMP Directory'
- template: checkout-sources.yml
- template: cmake-configure-build.yml
parameters:
targetPlatform: ${{ parameters.targetPlatform }}
targetArch: ${{ parameters.vsDevCmdArch }}
hostArch: ${{ parameters.vsDevCmdArch }}
buildBenchmarks: ${{ parameters.buildBenchmarks }}
asanBuild: ${{ parameters.asanBuild }}
- template: run-tests.yml
parameters:
hostArch: ${{ parameters.vsDevCmdArch }}
targetPlatform: ${{ parameters.targetPlatform }}
targetArch: ${{ parameters.vsDevCmdArch }}
testSelection: ${{ parameters.testSelection }}