Add SPDM 1.4 ML-KEM post-quantum key exchange (FIPS 203) #98
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Memory Check | |
| on: | |
| push: | |
| branches: [ 'main', 'release/**' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| repository_dispatch: | |
| types: [nightly-trigger] | |
| jobs: | |
| valgrind: | |
| name: Valgrind / dynamic-mem=${{ matrix.dynamic-mem }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dynamic-mem: [yes, no] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y valgrind autoconf automake libtool | |
| - name: Cache wolfSSL | |
| id: cache-wolfssl | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/wolfssl-install | |
| key: wolfssl-ubuntu-latest-v1 | |
| - name: Build wolfSSL | |
| if: steps.cache-wolfssl.outputs.cache-hit != 'true' | |
| run: | | |
| cd ~ | |
| git clone --depth 1 https://github.com/wolfSSL/wolfssl.git | |
| cd wolfssl | |
| ./autogen.sh | |
| ./configure --enable-ecc --enable-sha384 --enable-aesgcm --enable-hkdf \ | |
| --enable-ecccustcurves --enable-keygen \ | |
| --prefix=$HOME/wolfssl-install | |
| make -j$(nproc) | |
| make install | |
| - name: Build with debug | |
| run: | | |
| ./autogen.sh | |
| ./configure --with-wolfssl=$HOME/wolfssl-install --enable-debug \ | |
| ${{ matrix.dynamic-mem == 'yes' && '--enable-dynamic-mem' || '' }} | |
| make -j$(nproc) | |
| make -j$(nproc) check TESTS= | |
| - name: Run valgrind | |
| run: | | |
| valgrind --leak-check=full \ | |
| --show-leak-kinds=all \ | |
| --track-origins=yes \ | |
| --error-exitcode=1 \ | |
| ./test/unit_test | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}/src/.libs:$HOME/wolfssl-install/lib |