From 21027ef1c1d64c7a8c26614b3084fb05eb186686 Mon Sep 17 00:00:00 2001 From: John Bland <106998124+jpbland1@users.noreply.github.com> Date: Tue, 14 Feb 2023 12:06:36 -0500 Subject: [PATCH] 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 --- .github/workflows/make-test-swtpm.yml | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/make-test-swtpm.yml diff --git a/.github/workflows/make-test-swtpm.yml b/.github/workflows/make-test-swtpm.yml new file mode 100644 index 0000000..cac9976 --- /dev/null +++ b/.github/workflows/make-test-swtpm.yml @@ -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