Skip to content

Commit 7caf3c5

Browse files
SGSSGeneeseiler
andauthored
fix: LICENSES is now a folder (#38)
* test: add ci testing to install via make * fix: LICENSES is now a folder * Update .github/workflows/ci_cmake.yml --------- Co-authored-by: Enrico Seiler <eseiler@users.noreply.github.com>
1 parent a88e5b6 commit 7caf3c5

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/ci_cmake.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: CMake
6+
7+
on:
8+
push:
9+
branches:
10+
- 'main'
11+
pull_request:
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: cmake-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: ${{ github.event_name != 'push' }}
17+
18+
env:
19+
TZ: Europe/Berlin
20+
21+
defaults:
22+
run:
23+
shell: bash -Eexuo pipefail {0}
24+
25+
jobs:
26+
build:
27+
name: "Install"
28+
runs-on: ubuntu-22.04
29+
timeout-minutes: 120
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
path: repo
35+
fetch-depth: 1
36+
submodules: true
37+
38+
- name: Install CMake
39+
uses: seqan/actions/setup-cmake@main
40+
with:
41+
cmake: 3.16.9
42+
43+
- name: Setup compiler
44+
uses: seqan/actions/setup-compiler@main
45+
with:
46+
compiler: gcc-13
47+
48+
- name: Build and install files
49+
run: |
50+
mkdir build
51+
cd build
52+
cmake ../repo
53+
make install DESTDIR=rootfs

cmake/install.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ write_basic_package_version_file (
3131
COMPATIBILITY AnyNewerVersion)
3232
install (FILES ${version_file} DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/tdl)
3333

34-
install (FILES "${CMAKE_CURRENT_LIST_DIR}/../LICENSE.md" "${CMAKE_CURRENT_LIST_DIR}/../README.md" TYPE DOC)
34+
install (FILES "${CMAKE_CURRENT_LIST_DIR}/../README.md" TYPE DOC)
35+
install (DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/../LICENSES" TYPE DOC)

0 commit comments

Comments
 (0)