-
Notifications
You must be signed in to change notification settings - Fork 13
119 lines (94 loc) · 3.91 KB
/
main.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
name: main
env:
AS: nasm
RUST_TOOLCHAIN: nightly-2023-12-31
TOOLCHAIN_PROFILE: minimal
permissions:
contents: read
jobs:
build_migtd_release:
name: Build final migtd - release
runs-on: ubuntu-20.04
timeout-minutes: 45
steps:
# Install first since it's needed to build NASM
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@e0a8dc9cb8a22e8a7696e8a91a4e9581bec13181 # v2.0.5
with:
version: "10.0"
directory: ${{ runner.temp }}/llvm
- name: Install NASM
uses: ilammy/setup-nasm@13cbeb366c45c4379d3478cdcbadd8295feb5028 # v1.5.1
- name: Install tools for sgx lib
run: sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python-is-python3 libssl-dev git cmake perl
- name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: ${{ env.TOOLCHAIN_PROFILE }}
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
components: rust-src
- name: Run cargo install cargo-xbuild
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: install
args: cargo-xbuild
- name: Preparation Work
run: bash sh_script/preparation.sh
- name: Build MigTD binary with a default production migration policy(virtio-vsock)
run: cargo image
- name: Build MigTD binary with a default production migration policy(virtio-serial)
run: cargo image --no-default-features --features main,stack-guard,virtio-serial
- name: Build MigTD binary with a default production migration policy(vmcall-vsock)
run: cargo image --no-default-features --features main,stack-guard,vmcall-vsock
- name: Build MigTD binary with feature `test_disable_ra_and_accept_all`
run: cargo image --features test_disable_ra_and_accept_all
build_migtd_debug:
name: Build final migtd - debug
runs-on: ubuntu-20.04
timeout-minutes: 45
steps:
# Install first since it's needed to build NASM
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@e0a8dc9cb8a22e8a7696e8a91a4e9581bec13181 # v2.0.5
with:
version: "10.0"
directory: ${{ runner.temp }}/llvm
- name: Install NASM
uses: ilammy/setup-nasm@13cbeb366c45c4379d3478cdcbadd8295feb5028 # v1.5.1
- name: Install tools for sgx lib
run: sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python-is-python3 libssl-dev git cmake perl
- name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: ${{ env.TOOLCHAIN_PROFILE }}
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
components: rust-src
- name: Run cargo install cargo-xbuild
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: install
args: cargo-xbuild
- name: Preparation Work
run: bash sh_script/preparation.sh
- name: Build MigTD binary with a default production migration policy(virtio-vsock)
run: cargo image --debug
- name: Build MigTD binary with a default production migration policy(virtio-serial)
run: cargo image --debug --no-default-features --features main,stack-guard,virtio-serial