-
Notifications
You must be signed in to change notification settings - Fork 6
114 lines (107 loc) · 3.51 KB
/
ubuntu.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Ubuntu
on:
push:
branches:
- main
pull_request:
jobs:
ci_test_gcc_release:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++-7, g++-9, g++-11]
steps:
- uses: actions/checkout@v2
- name: Install compiler
run: |
echo "deb http://dk.archive.ubuntu.com/ubuntu/ focal main universe" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y ${{ matrix.compiler }}
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build --parallel 2
- name: test
run: cd build && ctest -j 2 --output-on-failure
ci_test_gcc_debug:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++-8, g++-10, g++-12]
steps:
- uses: actions/checkout@v2
- name: Install compiler
run: |
echo "deb http://dk.archive.ubuntu.com/ubuntu/ focal main universe" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y ${{ matrix.compiler }}
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=Debug
- name: build
run: cmake --build build --parallel 2
- name: test
run: cd build && ctest -j 2 --output-on-failure
ci_test_clang_release:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ["15", "17"]
steps:
- uses: actions/checkout@v2
- name: Install compiler
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.compiler }}
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build --parallel 2
- name: test
run: cd build && ctest -j 2 --output-on-failure
ci_test_clang_debug:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ["16"]
steps:
- uses: actions/checkout@v2
- name: Install compiler
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.compiler }}
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=Debug
- name: build
run: cmake --build build --parallel 2
- name: test
run: cd build && ctest -j 2 --output-on-failure
ci_test_standards:
runs-on: ubuntu-latest
strategy:
matrix:
standard: [11, 14, 17, 20]
compiler: [g++-11]
steps:
- uses: actions/checkout@v2
- name: Install compiler
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.compiler }}
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DCMAKE_BUILD_TYPE=Debug
- name: build
run: cmake --build build --parallel 2
- name: test
run: cd build && ctest -j 2 --output-on-failure
ci_nonstandard_features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=g++ -DAMC_PEDANTIC=ON -DCMAKE_BUILD_TYPE=Debug
- name: build
run: cmake --build build --parallel 2
- name: test
run: cd build && ctest -j 2 --output-on-failure