-
Notifications
You must be signed in to change notification settings - Fork 93
62 lines (56 loc) · 1.59 KB
/
aa_sev_kbc.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
name: attestation-agent offline_sev_kbc tests
on:
push:
branches:
- 'main'
paths:
- 'attestation-agent/kbc/offline_sev_kbc/**'
- 'attestation-agent/kbc/online_sev_kbc/**'
pull_request:
paths:
- 'attestation-agent/kbc/offline_sev_kbc/**'
- 'attestation-agent/kbc/online_sev_kbc/**'
create:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
offline_sev_kbc_ci:
if: github.event_name != 'push'
name: Check
defaults:
run:
working-directory: ./attestation-agent
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
rust:
- stable
kbc:
- offline_sev_kbc
- online_sev_kbc
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt
- name: Build and install with ${{ matrix.kbc }} feature
run: |
make KBC=${{ matrix.kbc }} && make install
- name: Musl build with ${{ matrix.kbc }} feature
run: |
make LIBC=musl KBC=${{ matrix.kbc }}
- name: Run cargo test with ${{ matrix.kbc }} feature
uses: actions-rs/cargo@v1
with:
command: test
args: -p kbc --no-default-features --features ${{ matrix.kbc }},rust-crypto