File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : WolfTPM CMake Build Tests
2+
3+ on :
4+ push :
5+ branches : [ 'master', 'main', 'release/**' ]
6+ pull_request :
7+ branches : [ '*' ]
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ # pull wolfTPM
16+ - uses : actions/checkout@master
17+
18+ # Install cmake
19+ - name : Install cmake
20+ run : |
21+ sudo apt-get update
22+ sudo apt-get install -y cmake
23+
24+ # pull and build wolfssl
25+ - uses : actions/checkout@master
26+ with :
27+ repository : wolfssl/wolfssl
28+ path : wolfssl
29+ - name : Build wolfssl
30+ working-directory : ./wolfssl
31+ run : |
32+ mkdir build
33+ cd build
34+ cmake -DWOLFSSL_TPM=yes ..
35+ make
36+ sudo make install
37+
38+ # build wolftpm
39+ - name : Build wolfTPM
40+ run : |
41+ mkdir build
42+ cd build
43+ cmake -DWOLFTPM_INTERFACE=SWTPM ..
44+ make
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ set(TPM_SOURCES
3535 src/tpm2_tis.c
3636 src/tpm2_winapi.c
3737 src/tpm2_wrap.c
38+ src/tpm2_cryptocb.c
3839 hal/tpm_io.c
3940 )
4041
Original file line number Diff line number Diff line change 3939
4040
4141# Key Generation Tests
42- echo -e " Ken Generation Tests"
42+ echo -e " Key Generation Tests"
4343./examples/keygen/keygen keyblob.bin -rsa >> run.out
4444RESULT=$?
4545[ $RESULT -ne 0 ] && echo -e " keygen rsa failed! $RESULT " && exit 1
You can’t perform that action at this time.
0 commit comments