Merge pull request #285 from eseiler/feature/copy_metadata_to_subparser #290
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin | |
| # SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik | |
| # SPDX-License-Identifier: CC0-1.0 | |
| name: CMake | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| types: | |
| - unlabeled | |
| workflow_dispatch: | |
| concurrency: | |
| group: cmake-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name != 'push' }} | |
| env: | |
| SHARG_NO_VERSION_CHECK: 1 | |
| TZ: Europe/Berlin | |
| defaults: | |
| run: | |
| shell: bash -Eexuo pipefail {0} | |
| jobs: | |
| build: | |
| name: "External project ${{ contains(matrix.SHARG_NO_TDL, 'OFF') && 'with TDL' || 'without TDL' }}" | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| SHARG_NO_TDL: [ON, OFF] | |
| container: | |
| image: ghcr.io/seqan/gcc-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - name: Install dependencies | |
| if: matrix.SHARG_NO_TDL == 'OFF' | |
| run: | | |
| git clone --depth 1 --single-branch --branch master https://github.com/jbeder/yaml-cpp.git | |
| cd yaml-cpp && mkdir build && cd build | |
| cmake ../ -DCMAKE_BUILD_TYPE=Debug \ | |
| -DYAML_CPP_BUILD_CONTRIB=OFF \ | |
| -DYAML_CPP_BUILD_TOOLS=OFF \ | |
| -DYAML_BUILD_SHARED_LIBS=OFF \ | |
| -DYAML_CPP_INSTALL=ON \ | |
| -DYAML_CPP_BUILD_TESTS=OFF | |
| make install | |
| - name: Configure tests | |
| run: | | |
| mkdir build && cd build | |
| cmake ../test/external_project -DCMAKE_BUILD_TYPE=Debug \ | |
| -DSHARG_NO_TDL=${{ matrix.SHARG_NO_TDL }} | |
| make -k sharg_test_prerequisite | |
| - name: Build tests | |
| working-directory: build | |
| run: make -k |