From 27794c4b7e1d16422ad2e5652d71236ea6fe4cc1 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 30 Mar 2023 19:33:40 +0200 Subject: [PATCH] Initial async test with gh action --- .github/workflows/async.yml | 25 +++++++++++++++++++++++++ .github/workflows/main.yml | 2 ++ async-check.sh | 13 +++++++++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/async.yml diff --git a/.github/workflows/async.yml b/.github/workflows/async.yml new file mode 100644 index 000000000..59d5a6f63 --- /dev/null +++ b/.github/workflows/async.yml @@ -0,0 +1,25 @@ +name: Async Tests + +on: + workflow_call: + +jobs: + make_check: + strategy: + matrix: + config: [ + # Add new configs here + '--enable-asynccrypt --enable-all --enable-dtls13', + ] + name: make check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + name: Checkout wolfSSL + + - name: Test wolfSSL async + run: | + bash -e async-check.sh keep # this step already tests the basic config + ./configure ${{ matrix.config }} + make check + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7eb9b9d05..a7944f9dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,8 @@ jobs: uses: ./.github/workflows/docker-OpenWrt.yml os-check: uses: ./.github/workflows/os-check.yml + async: + uses: ./.github/workflows/async.yml stunnel: uses: ./.github/workflows/stunnel.yml openvpn: diff --git a/async-check.sh b/async-check.sh index 3d70ddee8..95ad35aad 100755 --- a/async-check.sh +++ b/async-check.sh @@ -19,7 +19,7 @@ function Usage() { printf '%s\n\n' "---------------------------------" } -ASYNC_REPO=git@github.com:wolfSSL/wolfAsyncCrypt.git +ASYNC_REPO=https://github.com/wolfSSL/wolfAsyncCrypt.git #ASYNC_REPO=../wolfAsyncCrypt # Optionally keep async files @@ -40,15 +40,25 @@ fi # link files +rm ./wolfcrypt/src/async.c ln -s -F ../../async/wolfcrypt/src/async.c ./wolfcrypt/src/async.c +rm ./wolfssl/wolfcrypt/async.h ln -s -F ../../async/wolfssl/wolfcrypt/async.h ./wolfssl/wolfcrypt/async.h +rm ./wolfcrypt/src/port/intel/quickassist.c ln -s -F ../../../../async/wolfcrypt/src/port/intel/quickassist.c ./wolfcrypt/src/port/intel/quickassist.c +rm ./wolfcrypt/src/port/intel/quickassist_mem.c ln -s -F ../../../../async/wolfcrypt/src/port/intel/quickassist_mem.c ./wolfcrypt/src/port/intel/quickassist_mem.c +rm ./wolfcrypt/src/port/intel/README.md ln -s -F ../../../../async/wolfcrypt/src/port/intel/README.md ./wolfcrypt/src/port/intel/README.md +rm ./wolfssl/wolfcrypt/port/intel/quickassist.h ln -s -F ../../../../async/wolfssl/wolfcrypt/port/intel/quickassist.h ./wolfssl/wolfcrypt/port/intel/quickassist.h +rm ./wolfssl/wolfcrypt/port/intel/quickassist_mem.h ln -s -F ../../../../async/wolfssl/wolfcrypt/port/intel/quickassist_mem.h ./wolfssl/wolfcrypt/port/intel/quickassist_mem.h +rm ./wolfcrypt/src/port/cavium/cavium_nitrox.c ln -s -F ../../../../async/wolfcrypt/src/port/cavium/cavium_nitrox.c ./wolfcrypt/src/port/cavium/cavium_nitrox.c +rm ./wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h ln -s -F ../../../../async/wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h ./wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h +rm ./wolfcrypt/src/port/cavium/README.md ln -s -F ../../../../async/wolfcrypt/src/port/cavium/README.md ./wolfcrypt/src/port/cavium/README.md @@ -58,7 +68,6 @@ make check # Clean up -popd if [ "x$KEEP" == "xno" ]; then unlink ./wolfcrypt/src/async.c