-
Notifications
You must be signed in to change notification settings - Fork 90
89 lines (73 loc) · 2.12 KB
/
kbs-rust.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
name: kbs rust tests
on:
push:
branches:
- "main"
paths:
- 'kbs/**'
- '.github/workflows/kbs-rust.yml'
- 'Cargo.toml'
pull_request:
paths:
- 'kbs/**'
- '.github/workflows/kbs-rust.yml'
- 'Cargo.toml'
env:
CARGO_TERM_COLOR: always
jobs:
ci:
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Code checkout
uses: actions/checkout@v4
- name: Rust toolchain installation
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
target: x86_64-unknown-linux-gnu
- name: Building dependencies installation
run: |
sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev libtss2-dev
- name: Install TPM dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtss2-dev
- name: Install TDX dependencies
run: |
sudo curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -
sudo echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list
sudo apt-get update
sudo apt-get install -y libtdx-attest-dev libsgx-dcap-quote-verify-dev
- name: KBS Build [Default]
working-directory: kbs
run: make
- name: KBS Build [Built-in CoCo AS, OpenSSL]
working-directory: kbs
run: make HTTPS_CRYPTO=openssl
- name: KBS Build [gRPC CoCo AS, RustTLS]
working-directory: kbs
run: make COCO_AS_INTEGRATE_TYPE=grpc
- name: build KBS for Intel Trust Authority
working-directory: kbs
run: make AS_TYPE=intel-trust-authority-as
- name: Lint
working-directory: kbs
run: make lint
- name: Format
working-directory: kbs
run: make format
- name: Test
working-directory: kbs
run: make check