|
| 1 | +name: Build and Test Refactor |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ 'master', 'main', 'release/**' ] |
| 6 | + pull_request: |
| 7 | + branches: [ '*' ] |
| 8 | + |
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + |
| 12 | +jobs: |
| 13 | + build: |
| 14 | + |
| 15 | + runs-on: ubuntu-latest |
| 16 | + |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v4 |
| 19 | + |
| 20 | + # List host CPU info |
| 21 | + - name: Host CPU info |
| 22 | + run: cat /proc/cpuinfo |
| 23 | + |
| 24 | + # List compiler version |
| 25 | + - name: List compiler version |
| 26 | + run: gcc --version |
| 27 | + |
| 28 | + # pull and build wolfssl |
| 29 | + - name: Checkout wolfssl |
| 30 | + uses: actions/checkout@v4 |
| 31 | + with: |
| 32 | + repository: wolfssl/wolfssl |
| 33 | + path: wolfssl |
| 34 | + |
| 35 | + # Build and test standard build |
| 36 | + - name: Build and test refactor |
| 37 | + run: cd test-refactor/posix && make clean && make -j WOLFSSL_DIR=../../wolfssl && make run |
| 38 | + |
| 39 | + # Build and test standard build, with DMA and ASAN enabled |
| 40 | + - name: Build and test refactor DMA ASAN |
| 41 | + run: cd test-refactor/posix && make clean && make -j DMA=1 ASAN=1 WOLFSSL_DIR=../../wolfssl && make run |
| 42 | + |
| 43 | + # Build and test ASAN build, with wolfCrypt tests enabled. |
| 44 | + - name: Build and test refactor ASAN TESTWOLFCRYPT |
| 45 | + run: cd test-refactor/posix && make clean && make -j ASAN=1 TESTWOLFCRYPT=1 WOLFSSL_DIR=../../wolfssl && make run |
| 46 | + |
| 47 | + # Build and test ASAN build, with wolfCrypt tests enabled and using the DMA devId. |
| 48 | + - name: Build and test refactor ASAN TESTWOLFCRYPT TESTWOLFCRYPT_DMA |
| 49 | + run: cd test-refactor/posix && make clean && make -j ASAN=1 TESTWOLFCRYPT=1 TESTWOLFCRYPT_DMA=1 DMA=1 WOLFSSL_DIR=../../wolfssl && make run |
| 50 | + |
| 51 | + # Build and test debug build with ASAN and NOCRYPTO |
| 52 | + - name: Build and test refactor ASAN DEBUG NOCRYPTO |
| 53 | + run: cd test-refactor/posix && make clean && make -j DEBUG=1 ASAN=1 NOCRYPTO=1 WOLFSSL_DIR=../../wolfssl && make run |
| 54 | + |
| 55 | + # Build and test debug build with ASAN and DMA |
| 56 | + - name: Build and test refactor ASAN DEBUG DMA |
| 57 | + run: cd test-refactor/posix && make clean && make -j DEBUG=1 ASAN=1 DMA=1 WOLFSSL_DIR=../../wolfssl && make run |
| 58 | + |
| 59 | + # Build and test with SHE and ASAN |
| 60 | + - name: Build and test refactor ASAN SHE |
| 61 | + run: cd test-refactor/posix && make clean && make -j SHE=1 ASAN=1 WOLFSSL_DIR=../../wolfssl && make run |
| 62 | + |
| 63 | + # Build and test with DEBUG=1 |
| 64 | + - name: Build and test refactor with DEBUG |
| 65 | + run: cd test-refactor/posix && make clean && make -j DEBUG=1 WOLFSSL_DIR=../../wolfssl && make run |
| 66 | + |
| 67 | + # Build and test with DEBUG_VERBOSE=1 (includes DEBUG) |
| 68 | + - name: Build and test refactor with DEBUG_VERBOSE |
| 69 | + run: cd test-refactor/posix && make clean && make -j DEBUG_VERBOSE=1 WOLFSSL_DIR=../../wolfssl && make run |
| 70 | + |
| 71 | + # Build and test in multithreaded mode with everything enabled |
| 72 | + - name: Build and test refactor with THREADSAFE and everything |
| 73 | + run: cd test-refactor/posix && make clean && make -j THREADSAFE=1 DMA=1 SHE=1 ASAN=1 WOLFSSL_DIR=../../wolfssl && make run |
| 74 | + |
| 75 | + # Build and test in multithreaded mode with everything enabled and wolfCrypt tests |
| 76 | + - name: Build and test refactor with THREADSAFE and TESTWOLFCRYPT and everything |
| 77 | + run: cd test-refactor/posix && make clean && make -j THREADSAFE=1 TESTWOLFCRYPT=1 DMA=1 SHE=1 ASAN=1 WOLFSSL_DIR=../../wolfssl && make run |
| 78 | + |
| 79 | + # Build and test in multithreaded mode with everything enabled and wolfCrypt tests with dma |
| 80 | + - name: Build and test refactor with THREADSAFE and TESTWOLFCRYPT with DMA |
| 81 | + run: cd test-refactor/posix && make clean && make -j THREADSAFE=1 TESTWOLFCRYPT=1 TESTWOLFCRYPT_DMA=1 DMA=1 SHE=1 ASAN=1 WOLFSSL_DIR=../../wolfssl && make run |
| 82 | + |
| 83 | + # Build and test with AUTH=1 |
| 84 | + - name: Build and test refactor with AUTH |
| 85 | + run: cd test-refactor/posix && make clean && make -j AUTH=1 WOLFSSL_DIR=../../wolfssl && make run |
| 86 | + |
| 87 | + # Build and test with AUTH=1 and ASAN |
| 88 | + - name: Build and test refactor with AUTH ASAN |
| 89 | + run: cd test-refactor/posix && make clean && make -j AUTH=1 ASAN=1 WOLFSSL_DIR=../../wolfssl && make run |
| 90 | + |
| 91 | + # Build and test with AUTH=1 and THREADSAFE |
| 92 | + - name: Build and test refactor with AUTH THREADSAFE ASAN |
| 93 | + run: cd test-refactor/posix && make clean && make -j AUTH=1 THREADSAFE=1 ASAN=1 WOLFSSL_DIR=../../wolfssl && make run |
| 94 | + |
| 95 | + # Build and test with AUTH=1 and NOCRYPTO=1 (auth on, crypto off) |
| 96 | + - name: Build and test refactor with AUTH NOCRYPTO |
| 97 | + run: cd test-refactor/posix && make clean && make -j AUTH=1 NOCRYPTO=1 WOLFSSL_DIR=../../wolfssl && make run |
0 commit comments