GitHub swtpm action (#259)

* wolfTPM support for GitHub actions.
* add github workflow for swtpm, runs make test
* add native and wrap test to the github action

---------

Co-authored-by: David Garske <david@wolfssl.com>
pull/264/head
John Bland 2023-02-14 12:06:36 -05:00 committed by GitHub
parent 8181987325
commit 21027ef1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,47 @@
name: Swtpm Build Test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
#pull wolfTPM
- uses: actions/checkout@master
#setup wolfssl
- uses: actions/checkout@master
with:
repository: wolfssl/wolfssl
path: wolfssl
- name: wolfssl autogen
working-directory: ./wolfssl
run: ./autogen.sh
- name: wolfssl configure
working-directory: ./wolfssl
run: ./configure --enable-wolftpm
- name: wolfssl make install
working-directory: ./wolfssl
run: sudo make install
#setup ibmswtpm2
- uses: actions/checkout@master
with:
repository: kgoldman/ibmswtpm2
path: ibmswtpm2
- name: ibmswtpm2 make
working-directory: ./ibmswtpm2/src
run: make
#setup wolfTPM
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --enable-swtpm
- name: make test
run: |
./ibmswtpm2/src/tpm_server &
sleep 10 && make test && ./examples/native/native_test && ./examples/wrap/wrap_test