-
Notifications
You must be signed in to change notification settings - Fork 165
73 lines (64 loc) · 1.97 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
# Here we're keeping on arbitrary LLVM version fixed and varying GCC.
linux-gcc:
strategy:
fail-fast: false
matrix:
image:
# List: https://github.com/conan-io/conan-docker-tools
- gcc10
- gcc9
- gcc8
- gcc7
- gcc6
runs-on: ubuntu-latest
container:
image: conanio/${{matrix.image}}
options: --user root
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory build
- name: Install libclang
run: apt-get -qq update && apt-get install -y llvm clang libclang-dev
- name: Install ninja
run: type ninja || apt-get install -y ninja-build
- name: Configure
working-directory: build/
run: cmake -GNinja $GITHUB_WORKSPACE
- name: Build
working-directory: build/
run: cmake --build .
- name: Test
working-directory: build/
run: ctest --output-on-failure
# Here we're varying the LLVM version and using its clang for compiling as well.
linux-clang:
strategy:
fail-fast: false
matrix:
version: [7, 8, 9, 10]
runs-on: ubuntu-latest
container:
# Just one of the newer images.
image: conanio/gcc10
options: --user root
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory build
- name: Install libclang
run: apt-get -qq update && apt-get install -y llvm-${{matrix.version}} clang-${{matrix.version}} libclang-${{matrix.version}}-dev
- name: Install ninja
run: type ninja || apt-get install -y ninja-build
- name: Configure
working-directory: build/
run: cmake -GNinja $GITHUB_WORKSPACE -DCMAKE_CXX_COMPILER=clang++-${{matrix.version}}
- name: Build
working-directory: build/
run: cmake --build .
- name: Test
working-directory: build/
run: ctest --output-on-failure