generated from seqan/app-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
206 additions
and
3,263 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: Update CPM | ||
|
||
on: | ||
schedule: | ||
- cron: "0 12 * * SAT" | ||
workflow_dispatch: | ||
|
||
env: | ||
TZ: Europe/Berlin | ||
|
||
concurrency: | ||
group: update-cpm-actions | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
update_cpm: | ||
name: Update CPM | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' | ||
steps: | ||
- name: Run update CPM | ||
uses: seqan/actions/update_cpm_package_lock@main | ||
with: | ||
token: ${{ secrets.SEQAN_ACTIONS_PAT }} | ||
gpg_key: ${{ secrets.SEQAN_ACTIONS_GPG_KEY }} | ||
gpg_passphrase: ${{ secrets.SEQAN_ACTIONS_GPG_PASSPHRASE }} | ||
package_lock_file: cmake/package-lock.cmake |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# SPDX-FileCopyrightText: Copyright (c) 2019-2023 Lars Melchior and contributors | ||
|
||
set (CPM_DOWNLOAD_VERSION 0.40.2) | ||
set (CPM_HASH_SUM "c8cdc32c03816538ce22781ed72964dc864b2a34a310d3b7104812a5ca2d835d") | ||
|
||
if (CPM_SOURCE_CACHE) | ||
set (CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake") | ||
elseif (DEFINED ENV{CPM_SOURCE_CACHE}) | ||
set (CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake") | ||
else () | ||
set (CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake") | ||
endif () | ||
|
||
# Expand relative path. This is important if the provided path contains a tilde (~) | ||
get_filename_component (CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE) | ||
|
||
file (DOWNLOAD https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake | ||
${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256=${CPM_HASH_SUM}) | ||
|
||
include (${CPM_DOWNLOAD_LOCATION}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# Only if creating the source package (`make package_source`): | ||
# Copy dependency include directories into package's staging folder | ||
if (CPACK_SOURCE_INSTALLED_DIRECTORIES) | ||
configure_file ("@CPM_DOWNLOAD_LOCATION@" "${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake" COPYONLY) | ||
if ("@use_ccache_ADDED@" STREQUAL "YES") | ||
configure_file ("@use_ccache_SOURCE_DIR@/ccache/CMakeLists.txt" | ||
"${CMAKE_CURRENT_BINARY_DIR}/test/cmake/sharg_require_ccache.cmake" COPYONLY) | ||
endif () | ||
endif () |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
# CPM Package Lock | ||
# This file should be committed to version control | ||
|
||
# URL/GIT_TAG may be annotated with a branch name | ||
# This is needed for https://github.com/seqan/actions/tree/main/update_cpm_package_lock | ||
|
||
# The first argument of CPMDeclarePackage can be freely chosen and is used as argument in CPMGetPackage. | ||
# The NAME argument should be package name that would also be used in a find_package call. | ||
# Ideally, both are the same, which might not always be possible: https://github.com/cpm-cmake/CPM.cmake/issues/603 | ||
# This is needed to support CPM_USE_LOCAL_PACKAGES | ||
|
||
# TDL | ||
set (SHARG_TDL_VERSION 1.0.1) | ||
CPMDeclarePackage (tdl | ||
NAME tdl | ||
VERSION ${SHARG_TDL_VERSION} | ||
GITHUB_REPOSITORY deNBI-cibi/tool_description_lib | ||
SYSTEM TRUE | ||
OPTIONS "INSTALL_TDL OFF" "CMAKE_MESSAGE_LOG_LEVEL WARNING") | ||
# googletest | ||
set (SHARG_GOOGLETEST_VERSION 1.15.2) | ||
CPMDeclarePackage (googletest | ||
NAME GTest | ||
VERSION ${SHARG_GOOGLETEST_VERSION} | ||
GITHUB_REPOSITORY google/googletest | ||
SYSTEM TRUE | ||
OPTIONS "BUILD_GMOCK OFF" "INSTALL_GTEST OFF" "CMAKE_MESSAGE_LOG_LEVEL WARNING") | ||
# doxygen-awesome | ||
set (SHARG_DOXYGEN_AWESOME_VERSION 2.3.4) | ||
CPMDeclarePackage (doxygen_awesome | ||
NAME doxygen_awesome | ||
VERSION ${SHARG_DOXYGEN_AWESOME_VERSION} | ||
GITHUB_REPOSITORY jothepro/doxygen-awesome-css | ||
DOWNLOAD_ONLY TRUE | ||
QUIET YES) | ||
# use_ccache | ||
set (SHARG_USE_CCACHE_VERSION d2a54ef555b6fc2d496a4c9506dbeb7cf899ce37) | ||
CPMDeclarePackage (use_ccache | ||
NAME use_ccache | ||
GIT_TAG ${SHARG_USE_CCACHE_VERSION} # main | ||
GITHUB_REPOSITORY seqan/cmake-scripts | ||
SOURCE_SUBDIR ccache | ||
SYSTEM TRUE | ||
EXCLUDE_FROM_ALL TRUE) |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
cmake_minimum_required (VERSION 3.15) | ||
|
||
# Uses `ccache` to cache build results. | ||
# | ||
# See also | ||
# * https://ccache.dev/ | ||
# * https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_LAUNCHER.html | ||
macro (sharg_require_ccache) | ||
find_program (CCACHE_PROGRAM ccache) | ||
find_package_message (CCACHE_PROGRAM_PRE "Finding program ccache" "[${CCACHE_PROGRAM}]") | ||
|
||
if (NOT CCACHE_PROGRAM) | ||
find_package_message (CCACHE_PROGRAM "Finding program ccache - Failed" "[${CCACHE_PROGRAM}]") | ||
else () | ||
find_package_message (CCACHE_PROGRAM "Finding program ccache - Success" "[${CCACHE_PROGRAM}]") | ||
list (PREPEND CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}") | ||
# use ccache in external cmake projects | ||
list (APPEND SHARG_EXTERNAL_PROJECT_CMAKE_ARGS "-DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}") | ||
endif () | ||
unset (CCACHE_PROGRAM) | ||
endmacro () | ||
# This file's only purpose is to be replaced with the content of the use_ccache CMakeLists.txt file | ||
# when creating the source package. | ||
CPMGetPackage (use_ccache) |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.