-
Notifications
You must be signed in to change notification settings - Fork 30
92 lines (86 loc) · 2.38 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- master
paths-ignore:
- '*.md'
- 'LICENSE.txt'
- 'AUTHORS'
- '*.nix'
- 'example_project/**'
pull_request:
branches:
- master
paths-ignore:
- '*.md'
- 'LICENSE.txt'
- 'AUTHORS'
- '*.nix'
- 'example_project/**'
jobs:
gcc:
name: ${{ matrix.version }} C++${{ matrix.cpp }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [gcc6, gcc7, gcc8, gcc9]
cpp: [11, 14, 17]
exclude:
- version: gcc6
cpp: 17
steps:
- uses: actions/checkout@v2
- name: run
run: docker run -v $(pwd):/home/src renatogarcia/icecream-ci:${{ matrix.version }} /bin/sh -c "cmake /home/src -DCMAKE_CXX_STANDARD=${{ matrix.cpp }} -DBUILD_TESTING=ON && cmake --build . && ctest -V"
clang:
name: ${{ matrix.version }} C++${{ matrix.cpp }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [clang5, clang10]
cpp: [11, 14, 17]
steps:
- uses: actions/checkout@v2
- name: run
run: docker run -v $(pwd):/home/src renatogarcia/icecream-ci:${{ matrix.version }} /bin/sh -c "cmake /home/src -DCMAKE_CXX_STANDARD=${{ matrix.cpp }} -DBUILD_TESTING=ON && cmake --build . && ctest -V"
msvc:
name: ${{ matrix.name }} C++${{ matrix.cpp }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2022, windows-2019]
cpp: [11, 14, 17]
include:
- os: windows-2022
name: vs2022
- os: windows-2019
name: vs2019
steps:
- uses: actions/checkout@v2
- name: prepare
run: choco install boost-msvc-14.2 -y
- name: build
run: cmake . -DCMAKE_CXX_STANDARD=${{ matrix.cpp }} -DBUILD_TESTING=ON && cmake --build . --config Debug
- name: run
run: ctest -V -C Debug
xcode:
name: Xcode C++${{ matrix.cpp }}
runs-on: macos-12
strategy:
fail-fast: false
matrix:
cpp: [11, 14, 17]
env:
CPP_STANDARD: ${{ matrix.cpp }}
steps:
- uses: actions/checkout@v2
- name: prepare
run: brew install boost
- name: build
run: cmake . -DCMAKE_CXX_STANDARD=${{ matrix.cpp }} -DBUILD_TESTING=ON && cmake --build .
- name: run
run: ctest -V