-
Notifications
You must be signed in to change notification settings - Fork 13
102 lines (79 loc) · 3.13 KB
/
integration-tdx.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
name: Ingetration Test on TDX Server
env:
AS: nasm
RUST_TOOLCHAIN: nightly-2022-11-15
TOOLCHAIN_PROFILE: minimal
jobs:
system_compile:
name: Run TDX Integration Test
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: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build Migration TD binary
run: bash sh_script/build_final.sh -t migtd -c -a on
- name: Run Tests - Test Migration TD
run: |
sudo bash sh_script/integration_tdx.sh -f target/release/migtd.bin
- name: Run Tests - Cycle Test Migration TD (20)
run: |
sudo bash sh_script/integration_tdx.sh -f target/release/migtd.bin -n 20
- name: Build all test binaries
run: bash sh_script/build_final.sh -t test -c -a on
- name: Run Tests - Run test TD payload
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/final-test.bin
- name: Run Tests - Run migration test case 001
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_001.bin
- name: Run Tests - Run migration test case 002
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_002.bin
- name: Run Tests - Run migration test case 003
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_003.bin
- name: Run Tests - Run migration test case 004
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_004.bin
- name: Run Tests - Run migration test case 005
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_005.bin
- name: Run Tests - Run migration test case 006
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_006.bin
- name: Run Tests - Run migration test case 007
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_007.bin
- name: Run Tests - Run migration test case 008
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_008.bin
- name: Run Tests - Run migration test case 009
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_009.bin
- name: Run Tests - Run migration test case 010
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_010.bin
- name: Run Tests - Run migration test case 011
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/migtd_011.bin