Have matching SOVERSION for CMake and autotools #116
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-autoconf: | |
name: linux-autoconf | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup | |
run: sudo apt-get install build-essential libtool-bin | |
- name: Autogen | |
run: ./autogen.sh | |
- name: Configure | |
run: ./configure | |
- name: Make | |
run: make | |
- name: Check | |
run: make check | |
build-cmake: | |
name: ${{ matrix.toolchain }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
toolchain: | |
- linux-gcc | |
- macos-clang | |
- windows-msvc | |
configuration: | |
- Release | |
include: | |
- toolchain: linux-gcc | |
os: ubuntu-latest | |
compiler: gcc | |
- toolchain: macos-clang | |
os: macos-latest | |
compiler: clang | |
- toolchain: windows-msvc | |
os: windows-latest | |
compiler: msvc | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Configure (${{ matrix.configuration }}) | |
run: cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} | |
- name: Build with ${{ matrix.compiler }} | |
run: cmake --build build | |
- name: Test | |
run: cd build && ctest -V . |