-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (73 loc) · 2.81 KB
/
Copy pathLinux.yml
File metadata and controls
80 lines (73 loc) · 2.81 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
70
71
72
73
74
75
76
77
78
79
80
name: Linux
on:
pull_request:
branches: [ "main" ]
paths-ignore:
- ".readthedocs.yaml"
- "README.md"
jobs:
test:
strategy:
fail-fast: false
matrix:
compiler:
- { tool: gcc, ver: 8 }
- { tool: gcc, ver: 9 }
- { tool: gcc, ver: 10 }
- { tool: gcc, ver: 11 }
- { tool: gcc, ver: 12 }
- { tool: gcc, ver: 13 }
- { tool: clang, ver: 8 }
- { tool: clang, ver: 9 }
- { tool: clang, ver: 10 }
- { tool: clang, ver: 11 }
- { tool: clang, ver: 12 }
- { tool: clang, ver: 13 }
- { tool: clang, ver: 14 }
- { tool: clang, ver: 15 }
build_type: [ Release ]
os: [ ubuntu-20.04, ubuntu-22.04 ]
std: [ 17 ]
library_type: [ Static ]
include:
- compiler: { tool: gcc }
cxx: g++
cc: gcc
generator: Ninja
- compiler: { tool: clang }
cxx: clang++
cc: clang
generator: Ninja
exclude:
- { os: ubuntu-20.04, compiler: { tool: gcc, ver: 12 } }
- { os: ubuntu-20.04, compiler: { tool: gcc, ver: 13 } }
- { os: ubuntu-20.04, compiler: { tool: clang, ver: 13 } }
- { os: ubuntu-20.04, compiler: { tool: clang, ver: 14 } }
- { os: ubuntu-20.04, compiler: { tool: clang, ver: 15 } }
- { os: ubuntu-22.04, compiler: { tool: gcc, ver: 8 } }
- { os: ubuntu-22.04, compiler: { tool: clang, ver: 8 } }
- { os: ubuntu-22.04, compiler: { tool: clang, ver: 9 } }
- { os: ubuntu-22.04, compiler: { tool: clang, ver: 10 } }
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Create Build Environment
env:
PACKAGES: ${{ matrix.compiler.tool == 'gcc' && format('gcc-{0} g++-{0}', matrix.compiler.ver) || format('{0}-{1}', matrix.compiler.tool, matrix.compiler.ver) }}
run: |
sudo apt update
sudo apt install ${{env.PACKAGES}} ninja-build -y
sudo apt install locales-all
cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
env:
CXX: ${{matrix.cxx}}-${{matrix.compiler.ver}}
CC: ${{matrix.cc}}-${{matrix.compiler.ver}}
run: cmake -B ${{runner.workspace}}/build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_STANDARD=${{matrix.std}} -D_7BIT_CONF_LIBRARY_TYPE=${{matrix.library_type}} -D_7BIT_CONF_BUILD_ALL_TESTS=ON
- name: Build
run: cmake --build ${{runner.workspace}}/build --config ${{matrix.build_type}} -j
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}}
env:
CTEST_OUTPUT_ON_FAILURE: True