File tree Expand file tree Collapse file tree 15 files changed +167
-62
lines changed
Expand file tree Collapse file tree 15 files changed +167
-62
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,18 @@ jobs:
5454 mkdir build
5555 cd build
5656 cmake ../test/coverage -DCMAKE_BUILD_TYPE=Coverage
57- make -j gtest_main
57+ make gtest_main
5858
5959 - name : Build tests
6060 working-directory : build
6161 run : |
6262 ccache -z
63- make -k -j
63+ make -k
6464 ccache -sv
6565
6666 - name : Run tests
6767 working-directory : build
68- run : ctest . -j --output-on-failure
68+ run : ctest . -j --output-on-failure --no-tests=error
6969
7070 - name : Generate coverage report
7171 run : |
Original file line number Diff line number Diff line change 5454
5555 - name : Run tests
5656 working-directory : build
57- run : ctest . -j --output-on-failure
57+ run : ctest . -j --output-on-failure --no-tests=error
5858
5959 - name : Deploy Preview
6060 if : github.event_name == 'pull_request_target'
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2006-2025, Knut Reinert & Freie Universität Berlin
2+ # SPDX-FileCopyrightText: 2016-2025, Knut Reinert & MPI für molekulare Genetik
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ name : Install
6+
7+ on :
8+ push :
9+ branches :
10+ - ' main'
11+ pull_request :
12+ types :
13+ - unlabeled
14+ workflow_dispatch :
15+
16+ concurrency :
17+ group : install-${{ github.event.pull_request.number || github.ref }}
18+ cancel-in-progress : ${{ github.event_name != 'push' }}
19+
20+ env :
21+ TZ : Europe/Berlin
22+ CPM_USE_LOCAL_PACKAGES : ON
23+ CPM_LOCAL_PACKAGES_ONLY : ON
24+
25+ defaults :
26+ run :
27+ shell : bash -Eexuo pipefail {0}
28+
29+ jobs :
30+ build :
31+ runs-on : ubuntu-latest
32+ name : gcc-14
33+ if : github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint'
34+ container :
35+ image : ghcr.io/seqan/gcc-14
36+ volumes :
37+ - /home/runner:/home/runner
38+ steps :
39+ - name : Checkout
40+ uses : actions/checkout@v4
41+
42+ - name : Install dependencies
43+ run : |
44+ apt-get update 1>/dev/null
45+ apt-get install --yes --no-install-recommends \
46+ libcereal-dev \
47+ libgtest-dev \
48+ libsimde-dev \
49+ pkgconf \
50+ 1>/dev/null
51+
52+ - name : Install hibf
53+ run : |
54+ mkdir build_install && cd build_install
55+ cmake .. -DCMAKE_BUILD_TYPE=Release
56+ make install
57+ make package_source
58+ cpack
59+
60+ - name : Configure post-install tests
61+ run : |
62+ mkdir build && cd build
63+ cmake ../test/unit -DCMAKE_BUILD_TYPE=Release -DHIBF_POST_INSTALL_TEST=ON
64+
65+ - name : Build tests
66+ working-directory : build
67+ run : make -k
68+
69+ - name : Run tests
70+ working-directory : build
71+ run : ctest . -j
72+
Original file line number Diff line number Diff line change @@ -51,16 +51,16 @@ jobs:
5151 run : |
5252 mkdir build && cd build
5353 cmake ../test/unit -DCMAKE_BUILD_TYPE=Release
54- make -j gtest_main
54+ make gtest_main
5555
5656 - name : Build tests
5757 working-directory : build
5858 run : |
5959 ccache -z
60- make -k -j
60+ make -k
6161 ccache -sv
6262
6363 - name : Run tests
6464 working-directory : build
65- run : ctest . -j --output-on-failure
65+ run : ctest . -j --output-on-failure --no-tests=error
6666
Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ jobs:
5454 mkdir build
5555 cd build
5656 cmake ../test/unit -DCMAKE_BUILD_TYPE=Release
57- make -j gtest_main
57+ make gtest_main
5858
5959 - name : Build tests
6060 working-directory : build
6161 run : |
6262 ccache -z
63- make -k -j
63+ make -k
6464 ccache -sv
6565
6666 - name : Run tests
6767 working-directory : build
68- run : ctest . -j --output-on-failure
68+ run : ctest . -j --output-on-failure --no-tests=error
Original file line number Diff line number Diff line change @@ -108,28 +108,28 @@ jobs:
108108 -DHIBF_USE_INCLUDE_DEPENDENCIES="${{ matrix.use_include_dependencies }}" \
109109 -DCMAKE_DEPENDS_USE_COMPILER=OFF
110110 case "${{ matrix.build }}" in
111- unit) make -j gtest_main;;
112- snippet) make -j gtest_main;;
113- performance) make -j benchmark_main;;
114- header) make -j gtest_main benchmark_main;;
111+ unit) make gtest_main;;
112+ snippet) make gtest_main;;
113+ performance) make benchmark_main;;
114+ header) make gtest_main benchmark_main;;
115115 esac
116116
117117 - name : Check cyclic includes
118118 if : matrix.use_include_dependencies == 'ON'
119119 working-directory : build
120120 run : |
121- make -k -j all_dependencies
121+ make -k all_dependencies
122122 cmake .
123123
124124 - name : Build tests
125125 if : matrix.use_include_dependencies == 'OFF'
126126 working-directory : build
127127 run : |
128128 ccache -z
129- make -k -j
129+ make -k
130130 ccache -sv
131131
132132 - name : Run tests
133133 if : matrix.use_include_dependencies == 'OFF'
134134 working-directory : build
135- run : ctest . -j --output-on-failure
135+ run : ctest . -j --output-on-failure --no-tests=error
Original file line number Diff line number Diff line change @@ -100,13 +100,13 @@ jobs:
100100 mkdir build && cd build
101101 cmake ../test/all -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
102102 -DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}"
103- make -j gtest_main benchmark_main
103+ make gtest_main benchmark_main
104104
105105 - name : Build tests
106106 working-directory : build
107- run : make -k -j
107+ run : make -k
108108
109109 - name : Run tests
110110 working-directory : build
111- run : ctest . -j --output-on-failure ${{ matrix.ctest_excludes }}
111+ run : ctest . -j --output-on-failure --no-tests=error ${{ matrix.ctest_excludes }}
112112
Original file line number Diff line number Diff line change 5050 working-directory : build
5151 run : |
5252 ccache -z
53- make -k -j
53+ make -k
5454 ccache -sv
5555
5656
Original file line number Diff line number Diff line change @@ -17,12 +17,11 @@ set (CPACK_RESOURCE_FILE_README "${HIBF_SOURCE_DIR}/README.md")
1717
1818# Source Package
1919set (CPACK_SOURCE_GENERATOR "TXZ" )
20- list (APPEND CPACK_SOURCE_IGNORE_FILES "/\. git($|/)" )
21- list (APPEND CPACK_SOURCE_IGNORE_FILES "/\. github/" )
22- list (APPEND CPACK_SOURCE_IGNORE_FILES "/\. vscode/" )
23- list (APPEND CPACK_SOURCE_IGNORE_FILES "/build/" )
24- list (APPEND CPACK_SOURCE_IGNORE_FILES "/submodules/" )
25- list (APPEND CPACK_SOURCE_IGNORE_FILES "/cmake/CPM.cmake" )
20+ list (APPEND CPACK_SOURCE_IGNORE_FILES "${HIBF_SOURCE_DIR} /\. git($|/)" )
21+ list (APPEND CPACK_SOURCE_IGNORE_FILES "${HIBF_SOURCE_DIR} /\. github/" )
22+ list (APPEND CPACK_SOURCE_IGNORE_FILES "${HIBF_SOURCE_DIR} /\. vscode/" )
23+ list (APPEND CPACK_SOURCE_IGNORE_FILES "${HIBF_SOURCE_DIR} /build/" )
24+ list (APPEND CPACK_SOURCE_IGNORE_FILES "${HIBF_SOURCE_DIR} /cmake/CPM.cmake" )
2625
2726# Already being called on source package
2827if (NOT CPM_DOWNLOAD_LOCATION)
Original file line number Diff line number Diff line change @@ -40,5 +40,6 @@ write_basic_package_version_file (
4040 COMPATIBILITY SameMajorVersion )
4141install (FILES ${version_file} DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/hibf)
4242
43- install (FILES "${HIBF_SOURCE_DIR} /LICENSE.md" "${HIBF_SOURCE_DIR} /README.md" TYPE DOC)
44- install (DIRECTORY "${HIBF_SOURCE_DIR} /LICENSES" TYPE DOC)
43+ install (FILES "${HIBF_SOURCE_DIR} /LICENSE.md" "${HIBF_SOURCE_DIR} /README.md"
44+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /doc/hibf)
45+ install (DIRECTORY "${HIBF_SOURCE_DIR} /LICENSES" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /doc/hibf)
You can’t perform that action at this time.
0 commit comments