2019-04-26 18:27:27 +03:00
|
|
|
trigger:
|
2019-06-04 00:24:02 +03:00
|
|
|
batch: true
|
2019-04-26 18:27:27 +03:00
|
|
|
branches:
|
|
|
|
include:
|
2021-02-05 14:32:19 +03:00
|
|
|
- main
|
2020-11-10 13:57:56 +03:00
|
|
|
- "refs/tags/ccf-*"
|
2019-06-24 15:44:27 +03:00
|
|
|
|
|
|
|
pr:
|
|
|
|
autoCancel: true
|
|
|
|
branches:
|
|
|
|
include:
|
2021-02-05 14:32:19 +03:00
|
|
|
- main
|
2021-04-30 13:04:03 +03:00
|
|
|
- "release/*"
|
2019-06-24 15:44:27 +03:00
|
|
|
paths:
|
|
|
|
include:
|
2020-11-10 13:57:56 +03:00
|
|
|
- "*"
|
2019-04-26 18:27:27 +03:00
|
|
|
|
2019-06-26 14:59:26 +03:00
|
|
|
schedules:
|
2020-11-10 13:57:56 +03:00
|
|
|
- cron: "0 3 * * Mon-Fri"
|
|
|
|
displayName: Daily morning build
|
|
|
|
branches:
|
|
|
|
include:
|
2021-02-05 14:32:19 +03:00
|
|
|
- main
|
2021-04-30 13:04:03 +03:00
|
|
|
- "release/*"
|
2022-10-21 14:00:52 +03:00
|
|
|
exclude:
|
|
|
|
- "release/1.x"
|
2020-11-10 13:57:56 +03:00
|
|
|
always: true
|
2019-06-26 14:59:26 +03:00
|
|
|
|
2019-10-16 15:57:17 +03:00
|
|
|
resources:
|
|
|
|
containers:
|
2022-09-06 17:05:37 +03:00
|
|
|
- container: virtual
|
2023-03-22 18:08:51 +03:00
|
|
|
image: ccfmsrc.azurecr.io/ccf/ci:2023-03-13-2-virtual-clang15
|
2023-03-14 16:09:34 +03:00
|
|
|
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /lib/modules:/lib/modules:ro
|
|
|
|
|
|
|
|
- container: snp
|
|
|
|
image: ccfmsrc.azurecr.io/ccf/ci:2023-03-13-2-snp-clang15
|
2022-11-03 11:55:12 +03:00
|
|
|
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /lib/modules:/lib/modules:ro
|
2019-10-16 15:57:17 +03:00
|
|
|
|
|
|
|
- container: sgx
|
2023-03-14 16:09:34 +03:00
|
|
|
image: ccfmsrc.azurecr.io/ccf/ci:2023-03-13-2-sgx
|
2022-11-03 11:55:12 +03:00
|
|
|
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx_enclave:/dev/sgx_enclave --device /dev/sgx_provision:/dev/sgx_provision -v /dev/sgx:/dev/sgx -v /lib/modules:/lib/modules:ro
|
2019-10-16 15:57:17 +03:00
|
|
|
|
2020-01-30 17:17:03 +03:00
|
|
|
variables:
|
2020-06-25 15:10:04 +03:00
|
|
|
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-') }}:
|
2020-01-30 17:17:03 +03:00
|
|
|
perf_or_release: release
|
2021-04-28 19:55:28 +03:00
|
|
|
perf_tests: no_run
|
2020-06-25 15:10:04 +03:00
|
|
|
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-')) }}:
|
2020-01-30 17:17:03 +03:00
|
|
|
perf_or_release: perf
|
2021-04-28 19:55:28 +03:00
|
|
|
perf_tests: run
|
2020-01-30 17:17:03 +03:00
|
|
|
|
2019-04-26 18:27:27 +03:00
|
|
|
jobs:
|
2022-08-04 16:33:33 +03:00
|
|
|
- template: .azure-pipelines-templates/configure.yml
|
|
|
|
|
2020-11-10 13:57:56 +03:00
|
|
|
- template: .azure-pipelines-templates/matrix.yml
|
|
|
|
parameters:
|
|
|
|
perf_or_release: ${{ variables['perf_or_release'] }}
|
2021-04-28 19:55:28 +03:00
|
|
|
perf_tests: ${{ variables['perf_tests'] }}
|