mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 14:20:49 +02:00
585a1ecaaf
* ensure make -j is called everywhere * shallow clones where possible * set fixed ubuntu version for linux tests
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: WolfSSL CMake Autoconf Interworking Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ 'master', 'main', 'release/**' ]
|
|
pull_request:
|
|
branches: [ '*' ]
|
|
|
|
jobs:
|
|
build:
|
|
if: github.repository_owner == 'wolfssl'
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
# pull wolfSSL
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install cmake and autotools
|
|
uses: ./.github/actions/install-apt-deps
|
|
with:
|
|
packages: cmake autoconf automake libtool
|
|
|
|
# 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
|