-
Notifications
You must be signed in to change notification settings - Fork 82
97 lines (83 loc) · 2.9 KB
/
ci_cmake.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CMake
on:
push:
branches:
- 'master'
pull_request:
types:
- unlabeled
workflow_dispatch:
concurrency:
group: cmake-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name != 'push' }}
env:
SEQAN3_NO_VERSION_CHECK: 1
TZ: Europe/Berlin
defaults:
run:
shell: bash -Eexuo pipefail {0}
jobs:
build:
name: ${{ matrix.name }}
runs-on: ubuntu-22.04
timeout-minutes: 120
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint'
strategy:
fail-fast: false
matrix:
include:
- name: "Non-cyclic tests"
compiler: "gcc-13"
build: unit
build_type: Debug
use_include_dependencies: "ON"
- name: "External project"
compiler: "gcc-13"
build: external_project
build_type: Debug
steps:
- name: Checkout SeqAn3
uses: actions/checkout@v3
with:
path: seqan3
fetch-depth: 1
submodules: true
- name: Checkout SeqAn2
uses: actions/checkout@v3
with:
repository: seqan/seqan
path: seqan3/submodules/seqan
fetch-depth: 1
- name: Install CMake
uses: seqan/actions/setup-cmake@main
with:
cmake: 3.16.9
- name: Install CMake dependency
if: matrix.build == 'external_project'
run: |
mkdir -p /tmp/libidn11-download
wget --retry-connrefused --waitretry=30 --read-timeout=30 --timeout=30 --tries=20 --no-clobber --quiet --directory-prefix=/tmp/libidn11-download/ http://ftp.de.debian.org/debian/pool/main/libi/libidn/libidn11_1.33-3_amd64.deb
sudo dpkg -i /tmp/libidn11-download/libidn11_1.33-3_amd64.deb
- name: Setup compiler
uses: seqan/actions/setup-compiler@main
with:
compiler: ${{ matrix.compiler }}
- name: Configure tests
run: |
mkdir seqan3-build
cd seqan3-build
cmake ../seqan3/test/${{ matrix.build }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}" \
-DSEQAN3_VERBOSE_TESTS=OFF \
-DSEQAN3_USE_INCLUDE_DEPENDENCIES="${{ matrix.use_include_dependencies }}"
case "${{ matrix.build }}" in
unit) make -j${{ matrix.build_threads }} gtest_build;;
external_project) make -j${{ matrix.build_threads }} seqan3_test_prerequisite sharg_test_prerequisite;;
esac
- name: Build tests
run: |
cd seqan3-build
case "${{ matrix.build }}" in
unit) make -k -j2 all_dependencies; cmake .;;
external_project) make -k -j1;;
esac