зеркало из https://github.com/microsoft/CCF.git
50 строки
1.3 KiB
YAML
50 строки
1.3 KiB
YAML
trigger:
|
|
batch: true
|
|
branches:
|
|
include:
|
|
- main
|
|
- "refs/tags/ccf-*"
|
|
|
|
pr:
|
|
autoCancel: true
|
|
branches:
|
|
include:
|
|
- main
|
|
- "release/*"
|
|
paths:
|
|
include:
|
|
- "*"
|
|
|
|
schedules:
|
|
- cron: "0 3 * * Mon-Fri"
|
|
displayName: Daily morning build
|
|
branches:
|
|
include:
|
|
- main
|
|
- "release/*"
|
|
always: true
|
|
|
|
resources:
|
|
containers:
|
|
- container: nosgx
|
|
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
|
|
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
|
|
|
|
- container: sgx
|
|
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
|
|
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 /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
|
|
|
|
variables:
|
|
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-') }}:
|
|
perf_or_release: release
|
|
perf_tests: no_run
|
|
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-')) }}:
|
|
perf_or_release: perf
|
|
perf_tests: run
|
|
|
|
jobs:
|
|
- template: .azure-pipelines-templates/matrix.yml
|
|
parameters:
|
|
perf_or_release: ${{ variables['perf_or_release'] }}
|
|
perf_tests: ${{ variables['perf_tests'] }}
|