Skip to content

Commit

Permalink
CI testing for wolfPKCS11 with wolfTPM backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Nov 28, 2023
1 parent c610ada commit e3905f1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
config:
required: false
type: string
check:
required: false
type: string
default: 'make check'

jobs:
build:
Expand All @@ -30,7 +34,7 @@ jobs:
- name: wolfssl configure
working-directory: ./wolfssl
run: |
./configure --enable-cryptonly --enable-aescfb --enable-rsapss --enable-keygen --enable-pwdbased --enable-scrypt \
./configure -enable-aescfb --enable-cryptocb --enable-rsapss --enable-keygen --enable-pwdbased --enable-scrypt \
C_EXTRA_FLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT"
- name: wolfssl make install
working-directory: ./wolfssl
Expand All @@ -41,6 +45,39 @@ jobs:
sudo make install
sudo ldconfig
#setup ibmswtpm2
- uses: actions/checkout@v3
with:
repository: kgoldman/ibmswtpm2
path: ibmswtpm2
- name: ibmswtpm2 make
working-directory: ./ibmswtpm2/src
run: |
make
./tpm_server &
#setup wolftpm
- uses: actions/checkout@v3
with:
repository: wolfssl/dgarske
ref: tpm_cryptocb_keygen
path: wolftpm
- name: wolftpm autogen
working-directory: ./wolftpm
run: ./autogen.sh
- name: wolftpm configure
working-directory: ./wolftpm
run: |
./configure --enable-swtpm
- name: wolftpm make install
working-directory: ./wolftpm
run: make
- name: wolftpm make install
working-directory: ./wolftpm
run: |
sudo make install
sudo ldconfig
#setup wolfPKCS11
- name: wolfpkcs11 autogen
run: ./autogen.sh
Expand All @@ -49,7 +86,7 @@ jobs:
- name: wolfpkcs11 make
run: make
- name: wolfpkcs11 make check
run: make check
run: ${{inputs.check}}
- name: wolfpkcs11 make install
run: sudo make install
- name: wolfpkcs11 make dist
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
with:
config: --enable-singlethreaded

tpm:
uses: ./.github/workflows/build-workflow.yml
with:
config: --enable-singlethreaded --enable-wolftpm --disable-dh CFLAGS="-DWOLFPKCS11_TPM_STORE"
check: ./tests/pkcs11mtt

no_rsa:
uses: ./.github/workflows/build-workflow.yml
with:
Expand Down

0 comments on commit e3905f1

Please sign in to comment.