forked from wolfSSL/wolfTPM
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (62 loc) · 1.64 KB
/
seal-test.yml
File metadata and controls
71 lines (62 loc) · 1.64 KB
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
name: Seal Test Suite
on:
push:
branches: [ 'master', 'main', 'release/**' ]
paths:
- 'examples/seal/**'
- 'examples/nvram/seal_nv.c'
- 'examples/nvram/nvram.h'
- 'src/tpm2_wrap.c'
- 'wolftpm/tpm2_wrap.h'
pull_request:
branches: [ '*' ]
paths:
- 'examples/seal/**'
- 'examples/nvram/seal_nv.c'
- 'examples/nvram/nvram.h'
- 'src/tpm2_wrap.c'
- 'wolftpm/tpm2_wrap.h'
jobs:
seal-test:
runs-on: ubuntu-latest
steps:
- name: Checkout wolfTPM
uses: actions/checkout@v4
- name: Checkout wolfSSL
uses: actions/checkout@v4
with:
repository: wolfssl/wolfssl
ref: master
path: wolfssl
- name: Build and install wolfSSL
working-directory: ./wolfssl
run: |
./autogen.sh
./configure --enable-wolftpm --enable-pkcallbacks
make -j
sudo make install
sudo ldconfig
- name: Checkout ibmswtpm2
uses: actions/checkout@v4
with:
repository: kgoldman/ibmswtpm2
path: ibmswtpm2
- name: Build and start SWTPM
working-directory: ./ibmswtpm2/src
run: |
make
./tpm_server &
- name: Build wolfTPM
run: |
./autogen.sh
./configure --enable-swtpm --enable-debug
make -j
- name: Run seal tests
run: bash examples/seal/seal_test.sh
- name: Upload failure logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: seal-test-logs
path: seal_test.log
retention-days: 5