forked from microsoft/CCF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-pipelines.yml
44 lines (38 loc) · 1.03 KB
/
.azure-pipelines.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
trigger:
batch: true
branches:
include:
- main
- "refs/tags/ccf-*"
pr:
autoCancel: true
branches:
include:
- main
paths:
include:
- "*"
schedules:
- cron: "0 3 * * Mon-Fri"
displayName: Daily morning build
branches:
include:
- main
always: true
resources:
containers:
- container: nosgx
image: ccfciteam/ccf-ci:oe0.13.0-xxd
options: --publish-all --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
- container: sgx
image: ccfciteam/ccf-ci:oe0.13.0-xxd
options: --publish-all --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
variables:
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-') }}:
perf_or_release: release
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-')) }}:
perf_or_release: perf
jobs:
- template: .azure-pipelines-templates/matrix.yml
parameters:
perf_or_release: ${{ variables['perf_or_release'] }}