name: CMake on: push: branches: - master - 'release-*' pull_request: workflow_dispatch: jobs: build: strategy: matrix: os: [ubuntu-latest] shared: ["ON", "OFF"] pthread_support: ["ON", "OFF"] posix_support: ["ON", "OFF"] exclude: - posix_support: "OFF" pthread_support: "ON" runs-on: ${{ matrix.os }} name: ${{ matrix.os }} - shared=${{ matrix.shared }}, pthread=${{ matrix.pthread_support }}, posix=${{ matrix.posix_support }} steps: - uses: actions/checkout@v4 - name: Install dependencies run: | apt-get update apt-get install -y cmake build-essential - name: Configure run: | cmake -Bbuild -S . \ -DDCFG_BUILD_SHARED=${{ matrix.shared }} \ -DDCFG_PTHREAD_SUPPORT=${{ matrix.pthread_support }} \ -DDCFG_POSIX_SUPPORT=${{ matrix.posix_support }} - name: Build run: | cmake --build build