-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (95 loc) · 2.77 KB
/
debian.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
97
98
# SPDX-FileCopyrightText: 2022 The dune-iga developers [email protected]
# SPDX-License-Identifier: CC0-1.0
name: Debian
on:
push:
paths-ignore:
- '**.md'
pull_request:
types: [opened]
branches:
- main
paths-ignore:
- '**.md'
jobs:
Build:
name: ${{ matrix.config.name }}
runs-on: ubuntu-latest
container:
image: ikarusproject/dunebase-gcc:latest
options: --memory-swap="20g" --memory="20g" --cpus="2"
strategy:
fail-fast: false
matrix:
config:
- {
name: "Clang-Debug",
config: Debug,
compilerC: clang-16,
compilerCxx: clang++-16,
lib: "-stdlib=libc++",
testRegex: "cpp"
}
- {
name: "Clang-Release",
config: Release,
compilerC: clang-16,
compilerCxx: clang++-16,
lib: "-stdlib=libc++",
testRegex: "cpp"
}
- {
name: "Clang-18-Debug",
config: Debug,
compilerC: clang-18,
compilerCxx: clang++-18,
lib: "-stdlib=libc++",
testRegex: "cpp"
}
- {
name: "Clang-18-Release",
config: Release,
compilerC: clang-16,
compilerCxx: clang++-16,
lib: "-stdlib=libc++",
testRegex: "cpp"
}
- {
name: "GCC-Debug",
config: Debug,
compilerC: gcc-12,
compilerCxx: g++-12,
lib: "",
testRegex: "cpp"
}
- {
name: "GCC-Release",
config: Release,
compilerC: gcc-12,
compilerCxx: g++-12,
lib: "",
testRegex: "cpp"
}
- {
name: "GCC-Release-Python",
config: Release,
compilerC: gcc-12,
compilerCxx: g++-12,
lib: "",
testRegex: "python"
}
steps:
- uses: actions/checkout@v4
with:
path: 'repo'
- name: Build
working-directory: ./repo
run: |
mkdir cmake-build-${{ matrix.config.config }}
cd cmake-build-${{ matrix.config.config }}
cmake ../ -DCMAKE_BUILD_TYPE=${{ matrix.config.config }} -G "Unix Makefiles" -DCMAKE_C_COMPILER=${{ matrix.config.compilerC }} -DCMAKE_CXX_COMPILER=${{ matrix.config.compilerCxx }}
cmake --build . --parallel 2 --target _iga
cmake --build . --parallel 2 --target build_${{ matrix.config.testRegex }}_tests
- name: Tests
working-directory: ./repo/cmake-build-${{ matrix.config.config }}
run: ctest --output-on-failure --parallel 2 -C ${{ matrix.config.config }} -L ${{ matrix.config.testRegex }}