forked from enarx/enarx
-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (113 loc) · 3.56 KB
/
test.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
120
121
122
name: test
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
main:
name: enarx ${{ matrix.backend.name }} nightly ${{ matrix.profile.name }}
runs-on: ${{ matrix.backend.host }}
env:
ENARX_BACKEND: ${{ matrix.backend.name }}
steps:
- name: Cleanup working directory
run: rm -fr * $HOME/.cargo $HOME/.rustup
- uses: actions/checkout@v3
- name: Install rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2023-01-02 -y
- uses: dtolnay/rust-toolchain@master
with:
target: x86_64-unknown-linux-gnu
toolchain: nightly-2023-01-02
- run: cargo test ${{ matrix.profile.flag }}
strategy:
fail-fast: false
matrix:
backend:
- {name: sev, host: [self-hosted, linux, sev-snp]}
- {name: sgx, host: [self-hosted, linux, sgx]}
- {name: kvm, host: [self-hosted, linux, x64]}
profile:
- name: debug
- name: debug with dbg
flag: --features=dbg
- name: debug with bench
flag: --features=bench
- name: release
flag: --release
build-only:
name: enarx build-only nightly ${{ matrix.profile.name }}
runs-on: ubuntu-20.04
steps:
- run: sudo apt -o Acquire::Retries=3 update
- run: sudo apt -o Acquire::Retries=3 install -y musl-tools
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- run: cargo build ${{ matrix.profile.flag }}
strategy:
fail-fast: false
matrix:
profile:
- name: default-features
- name: gdb
flag: --features=gdb
- name: bench
flag: --features=bench
macos:
name: enarx MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- run: cargo test --workspace
windows:
name: enarx Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- run: cargo test --workspace
bindeps:
name: ${{ matrix.crate.name }} nightly ${{ matrix.profile.name }}
runs-on: ubuntu-20.04
steps:
- run: sudo apt -o Acquire::Retries=3 update
- run: sudo apt -o Acquire::Retries=3 install -y musl-tools
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- run: cargo test ${{ matrix.profile.flag }} --workspace --target x86_64-unknown-linux-gnu
strategy:
fail-fast: false
matrix:
profile:
- name: debug
- name: release
flag: --release
miri:
name: ${{ matrix.crate.name }} miri ${{ matrix.profile.name }}
runs-on: ubuntu-20.04
steps:
- run: sudo apt -o Acquire::Retries=3 update
- run: sudo apt -o Acquire::Retries=3 install -y musl-tools
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- name: cargo miri setup
run: cargo miri setup --manifest-path ${{ matrix.crate.path }}/Cargo.toml
- name: cargo miri test
env:
MIRIFLAGS: "-Zmiri-disable-isolation"
run: cargo miri test --manifest-path ${{ matrix.crate.path }}/Cargo.toml
strategy:
fail-fast: false
matrix:
crate:
- { name: sallyport, path: crates/sallyport }
profile:
- name: debug
- name: release
flag: --release