-
Notifications
You must be signed in to change notification settings - Fork 87
[INFRA] Buildsystem #3337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[INFRA] Buildsystem #3337
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e6bb420
[MISC] Always define SEQAN_HAS_{ZLIB,BZIP2}
eseiler 361693c
[MISC] SEQAN_HAS_{ZLIB,BZIP2} are always defined
eseiler 78250df
[MISC] Deprecate and rename SEQAN3_WITH_CEREAL
eseiler a1bbe3f
[INFRA] Rename SEQAN3_WITH_CEREAL to SEQAN3_HAS_CEREAL
eseiler 421a7d6
[MISC] Do not vendor cereal
eseiler 69b019f
[MISC] Always use zlib/bzip2 if available
eseiler 084e959
[MISC] Streamline package detection
eseiler c0fe88e
[TEST] Only exclude sdsl from header tests
eseiler a82b3d5
[INFRA] Fix gcovr
eseiler 93b7aa4
[TEST] Skip compression tests if dependency missing
eseiler 1445e18
[INFRA] Do not fetch cereal if CMAKE_DISABLE_FIND_PACKAGE_cereal is TRUE
eseiler fc62bdc
[DOC] Add example for force-(de)activating optional dependencies
eseiler 7f72131
[INFRA] Add cron for testing without optional dependencies
eseiler ed1ad10
[MISC] Add missing includes
eseiler 42beb57
[MISC] Macro comments: SEQAN3_HAS_ZLIB
eseiler 01cbc83
[MISC] Macro comments: SEQAN3_HAS_BZIP2
eseiler 2cbfd77
[MISC] Macro comments: SEQAN3_HAS_CEREAL
eseiler c27b374
[TEST] Do not check read_mapper output
eseiler f413686
[INFRA] Simplify platform.hpp combile check
eseiler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| # 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: No Optional Libraries | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 10 * * SUN" | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: no-optional-libraries-actions | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| SEQAN3_NO_VERSION_CHECK: 1 | ||
| TZ: Europe/Berlin | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash -Eeuxo pipefail {0} | ||
|
|
||
| jobs: | ||
| build: | ||
| name: ${{ matrix.build_type }} ${{ matrix.os }} (${{ matrix.zlib }}, ${{ matrix.bzip2 }}, ${{ matrix.cereal }}) | ||
| runs-on: ${{ matrix.os }} | ||
| if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' | ||
| strategy: | ||
| fail-fast: false | ||
| # Either all optional dependencies are disabled (true, true, true) | ||
| # Or only Bzip2 is disabled (false, true, false) | ||
| matrix: | ||
| os: [ubuntu-latest, macos-14] | ||
| build_type: [Release, Debug] | ||
| zlib: [true, false] | ||
| include: | ||
| - zlib: true | ||
| bzip2: true | ||
| cereal: true | ||
| - zlib: false | ||
| bzip2: true | ||
| cereal: false | ||
| - os: macos-14 | ||
| compiler: clang-19 | ||
| - os: ubuntu-latest | ||
| compiler: gcc-14 | ||
| image: ghcr.io/seqan/gcc-14 | ||
|
|
||
| container: | ||
| # If an image is defined for a matrix entry, use it. | ||
| # Otherwise, use the "empty"/'' image which means do not use a container at all. | ||
| image: ${{ matrix.image || '' }} | ||
| volumes: | ||
| - /home/runner:/home/runner | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup compiler | ||
| if: contains(matrix.os, 'macos') | ||
| uses: seqan/actions/setup-compiler@main | ||
| with: | ||
| compiler: ${{ matrix.compiler }} | ||
|
|
||
| - name: Configure tests | ||
| run: | | ||
| mkdir build && cd build | ||
| cmake ../test/analyse -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
| -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=${{ matrix.zlib }} \ | ||
| -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=${{ matrix.bzip2 }} \ | ||
| -DCMAKE_DISABLE_FIND_PACKAGE_cereal=${{ matrix.cereal }} \ | ||
| -DSEQAN3_BENCHMARK_MIN_TIME=0.01s | ||
| make gtest_main benchmark_main | ||
|
|
||
| - name: Build tests | ||
| working-directory: build | ||
| run: make -k | ||
|
|
||
| - name: Run tests | ||
| working-directory: build | ||
| continue-on-error: true | ||
| id: test | ||
| run: ctest . -j --output-on-failure --no-tests=error | ||
|
|
||
| # Rerun failed tests with **one** thread. Some snippets touch the same file and fail in parallel. | ||
| - name: Rerun failed tests | ||
| if: steps.test.outcome == 'failure' | ||
| working-directory: build | ||
| run: ctest . -j1 --output-on-failure --no-tests=error --rerun-failed |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.