-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (58 loc) · 1.69 KB
/
ci_install.yml
File metadata and controls
70 lines (58 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 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: Install
on:
push:
branches:
- 'main'
pull_request:
types:
- unlabeled
workflow_dispatch:
concurrency:
group: install-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name != 'push' }}
env:
TZ: Europe/Berlin
CPM_USE_LOCAL_PACKAGES: ON
CPM_LOCAL_PACKAGES_ONLY: ON
defaults:
run:
shell: bash -Eexuo pipefail {0}
jobs:
build:
runs-on: ubuntu-latest
name: gcc-latest
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint'
container:
image: ghcr.io/seqan/gcc-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install dependencies
run: |
apt-get update 1>/dev/null
apt-get install --yes --no-install-recommends \
libcereal-dev \
libgtest-dev \
libsimde-dev \
pkgconf \
1>/dev/null
- name: Install hibf
run: |
mkdir build_install && cd build_install
cmake .. -DCMAKE_BUILD_TYPE=Release
make install
make package_source
cpack
- name: Configure post-install tests
run: |
mkdir build && cd build
cmake ../test/unit -DCMAKE_BUILD_TYPE=Release -DHIBF_POST_INSTALL_TEST=ON
- name: Build tests
working-directory: build
run: make -k
- name: Run tests
working-directory: build
run: ctest . -j