From e4ea0950e08076d4bc9a865d653ebcf6afcc15a1 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 13 Dec 2024 10:03:38 -0800 Subject: [PATCH] Fix CI for old wolfSSL. --- .github/workflows/make-test-swtpm.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/make-test-swtpm.yml b/.github/workflows/make-test-swtpm.yml index 7d021622..09a2102f 100644 --- a/.github/workflows/make-test-swtpm.yml +++ b/.github/workflows/make-test-swtpm.yml @@ -203,14 +203,18 @@ 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. @@ -218,7 +222,7 @@ jobs: ./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