Add WOLFSSL_BARMETAL macro #2
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: Bare-Metal Configuration Tests | |
| on: | |
| push: | |
| branches: [ 'master', 'main', 'release/**' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| baremetal_autotools: | |
| name: Bare-metal build (autotools) | |
| if: github.repository_owner == 'wolfssl' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: [ | |
| '--enable-baremetal --enable-cryptonly' | |
| ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y autoconf automake libtool | |
| - name: autogen | |
| run: ./autogen.sh | |
| - name: configure | |
| run: CPPFLAGS="-DWOLFSSL_USER_IO" ./configure ${{ matrix.config }} --disable-examples --disable-rng | |
| - name: build | |
| run: make -j$(nproc) | |
| - name: Run tests | |
| run: ./wolfcrypt/test/testwolfcrypt | |
| baremetal_cmake: | |
| name: Bare-metal build (CMake) | |
| if: github.repository_owner == 'wolfssl' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y cmake build-essential | |
| - name: Configure CMake | |
| run: | | |
| mkdir build && cd build | |
| cmake -DWOLFSSL_BAREMETAL=yes -DWOLFSSL_EXAMPLES=no -DWOLFSSL_RNG=no -DCMAKE_C_FLAGS="-DWOLFSSL_USER_IO -DWOLFCRYPT_ONLY" .. | |
| - name: Build | |
| run: cd build && cmake --build . -j$(nproc) | |
| - name: Run tests | |
| run: cd build && ./wolfcrypt/test/testwolfcrypt | |