Skip to content

Add WOLFSSL_BARMETAL macro #2

Add WOLFSSL_BARMETAL macro

Add WOLFSSL_BARMETAL macro #2

Workflow file for this run

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