CCF/.azure-pipelines-templates/platform.yml

26 строки
693 B
YAML

parameters:
target: ""
steps:
- ${{ if eq(parameters.target, 'SGX') }}:
- script: |
set -ex
sudo groupadd -fg $(/usr/bin/stat -Lc '%g' /dev/sgx/provision) sgx_prv
sudo usermod -a -G sgx_prv $(whoami)
displayName: SGX Group
condition: succeededOrFailed()
- script: |
set -ex
samples/scripts/sgxinfo.sh
cat /proc/cpuinfo | grep flags | uniq
displayName: SGX Info
condition: succeededOrFailed()
- ${{ if ne(parameters.target, 'SGX') }}:
- script: |
set -ex
samples/scripts/snpinfo.sh
displayName: SEV-SNP Info
condition: succeededOrFailed()