Skip to content

Commit

Permalink
Fix CI for old wolfSSL.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Dec 13, 2024
1 parent 7c48b76 commit e4ea095
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/make-test-swtpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,22 +203,26 @@ jobs:
WOLFSSL_PATH=./wolfssl NO_FILESYSTEM=1 ./examples/run_examples.sh
# test with older wolfCrypt (v4.7.0)
- name: wolfssl old v4.7.0
- uses: actions/checkout@master
with:
repository: wolfssl/wolfssl
path: wolfssl-old
ref: v4.7.0-stable
- name: wolfssl old
working-directory: ./wolfssl
run: |
git checkout v4.7.0-stable
./configure --enable-wolftpm CFLAGS="-DWOLFSSL_PUBLIC_MP -DWOLFSSL_TEST_CERT -DWOLFSSL_KEY_GEN"
make
sudo make install
- name: wolftpm old wolfssl
- name: wolftpm with old wolfssl
# Old wolfSSL before PR #5075 does not support using a public key in place of private key with
# crypto callbacks enabled.
# To use PKCS7 or TLS Server a dummy private key must be used for older wolfSSL versions.
run: |
./configure --enable-swtpm
make
make check
WOLFSSL_PATH=./wolfssl NO_PUBASPRIV=1 ./examples/run_examples.sh
WOLFSSL_PATH=./wolfssl-old NO_PUBASPRIV=1 ./examples/run_examples.sh
# capture logs on failure
- name: Upload failure logs
Expand Down

0 comments on commit e4ea095

Please sign in to comment.