-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (49 loc) · 1.79 KB
/
noarr_matrix_example_test_ubuntu_22.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
name: Noarr matrix example test ubuntu-22.04
on:
push:
paths:
- 'include/**'
- 'examples/matrix/**'
- '.github/workflows/noarr_matrix_example_test_ubuntu_22.yml'
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04]
BUILD_TYPE: [Debug]
compiler: [g++-10, g++-11, g++-12, clang++-13, clang++-14, clang++-15]
include:
- compiler: g++-10
install: sudo apt-get update && sudo apt-get install g++-10
- compiler: g++-11
install: sudo apt-get update && sudo apt-get install g++-11
- compiler: g++-12
install: sudo apt-get update && sudo apt-get install g++-12
- compiler: clang++-13
install: sudo apt-get update && sudo apt-get install clang-13
- compiler: clang++-14
install: sudo apt-get update && sudo apt-get install clang-14
- compiler: clang++-15
install: sudo apt-get update && sudo apt-get install clang-15
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Install compiler
shell: bash
run: ${{matrix.install}}
- name: Create Build Environment
shell: bash
working-directory: ${{github.workspace}}/examples/matrix
run: cmake -E make_directory build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/examples/matrix/build
run: cmake .. -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=${{matrix.compiler}}
- name: Build
working-directory: ${{github.workspace}}/examples/matrix/build
shell: bash
run: cmake --build . --config ${{matrix.BUILD_TYPE}} -j
- name: Test
working-directory: ${{github.workspace}}/examples/matrix/build
shell: bash
run: ./matrix rows 10