Skip to content

Fix: Fenrir F-10621 #9261

Fix: Fenrir F-10621

Fix: Fenrir F-10621 #9261

Workflow file for this run

name: WolfSSL CMake Autoconf Interworking Test
on:
push:
branches: [ 'release/**' ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
if: ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
# pull wolfSSL
- uses: actions/checkout@v5
- name: Install cmake and autotools
uses: ./.github/actions/install-apt-deps
with:
packages: cmake autoconf automake libtool
ghcr-debs-tag: ubuntu-24.04-full
# build and install wolfssl via autotools for CMake consumer test
- name: Build wolfssl with autotools
run: |
./autogen.sh
./configure --prefix="$GITHUB_WORKSPACE/install-autoconf" --enable-all
make -j $(nproc)
make install
# CMake consumer test using the autotools install
- name: CMake consumer test (autotools install)
run: |
mkdir -p cmake/consumer/build
cd cmake/consumer/build
cmake -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/install-autoconf" ..
cmake --build .
./wolfssl_consumer
cd ..
rm -rf build
# build and install wolfssl via CMake, then run the same consumer test
- name: Build wolfssl with CMake
run: |
cmake -B build-cmake -DWOLFSSL_INSTALL=yes \
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install-cmake"
cmake --build build-cmake -j $(nproc)
cmake --install build-cmake
- name: CMake consumer test (CMake install)
run: |
mkdir -p cmake/consumer/build
cd cmake/consumer/build
cmake -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/install-cmake" ..
cmake --build .
./wolfssl_consumer
cd ..
rm -rf build