Skip to content

config: measure the payload section to mrtd #182

config: measure the payload section to mrtd

config: measure the payload section to mrtd #182

Workflow file for this run

on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
name: Integration Test on TDX Server
env:
AS: nasm
RUST_TOOLCHAIN: nightly-2023-08-28
TOOLCHAIN_PROFILE: minimal
jobs:
virtio_vsock:
name: Run TDX Integration Test (virtio-vsock)
runs-on: [self-hosted, tdx]
# timeout-minutes: 30
steps:
# Install first since it's needed to build NASM
# - name: Install LLVM and Clang
# uses: KyleMayes/install-llvm-action@v1
# with:
# version: "10.0"
# directory: ${{ runner.temp }}/llvm
# - name: Install NASM
# uses: ilammy/setup-nasm@v1
# - name: Install tools for sgx lib
# run: sudo dnf group install 'Development Tools' | sudo dnf --enablerepo=powertools install ocaml ocaml-ocamlbuild wget rpm-build pkgcon
- name: Clean test repository
run: |
sudo rm -rf sh_script/test/
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Preparation Work
run: bash sh_script/preparation.sh
- name: Build Migration TD binary
run: cargo image
- name: Run Tests - Test Migration TD 20 Cycles
run: |
pushd sh_script/test
sudo pytest -k "cycle"
popd
- name: Build all test binaries
run: bash sh_script/build_final.sh -t test -c -a on
- name: Run Tests
run: |
pushd sh_script/test
sudo pytest -k "not cycle"
popd
virtio_serial:
name: Run TDX Integration Test (virtio-serial)
runs-on: [self-hosted, tdx]
steps:
- name: Clean test repository
run: |
sudo rm -rf sh_script/test/
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Preparation Work
run: bash sh_script/preparation.sh
- name: Build Migration TD binary
run: cargo image --no-default-features --features remote-attestation,stack-guard,virtio-serial
- name: Run Tests - Test Migration TD 20 Cycles
run: |
pushd sh_script/test
sudo pytest -k "cycle" --device_type serial
popd
- name: Build all test binaries
run: bash sh_script/build_final.sh -t test -c -a on -d serial
- name: Run Tests
run: |
pushd sh_script/test
sudo pytest -k "not cycle" --device_type serial
popd