-
Notifications
You must be signed in to change notification settings - Fork 1
160 lines (155 loc) · 5.54 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: CI
on:
- pull_request
env:
CONAN_VERSION: 1.42.1
PATH_VERSION: 13.1.0
jobs:
build-linux:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [clang++-10, clang++-11, clang++-12, g++-8, g++-10]
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout repository
uses: actions/checkout@v1
- name: Install conan and path
run: pip install conan==$CONAN_VERSION path==$PATH_VERSION --user
- name: Install C++ compiler
if: matrix.compiler != 'clang++-12'
run: sudo apt-get install ${{ matrix.compiler }}
- name: Install build tools
run: sudo apt-get install ninja-build
- name: Build and test
run: CXX=${{ matrix.compiler }} python $GITHUB_WORKSPACE/ci/run-ci.py build-and-test --profile $GITHUB_WORKSPACE/ci/conan-profiles/${{ matrix.compiler }}
build-linux-cxx17:
runs-on: ubuntu-20.04
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout repository
uses: actions/checkout@v1
- name: Install conan and path
run: pip install conan==$CONAN_VERSION path==$PATH_VERSION --user
- name: Install C++ compiler
run: sudo apt-get install g++-8
- name: Install build tools
run: sudo apt-get install ninja-build
- name: Build and test
run: CXX=g++-8 python $GITHUB_WORKSPACE/ci/run-ci.py build-and-test --profile $GITHUB_WORKSPACE/ci/conan-profiles/g++-8 --cxx 17
build-linux-cxx20:
runs-on: ubuntu-20.04
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout repository
uses: actions/checkout@v1
- name: Install conan and path
run: pip install conan==$CONAN_VERSION path==$PATH_VERSION --user
- name: Install C++ compiler
run: sudo apt-get install g++-10
- name: Install build tools
run: sudo apt-get install ninja-build
- name: Build and test
run: CXX=g++-10 python $GITHUB_WORKSPACE/ci/run-ci.py build-and-test --profile $GITHUB_WORKSPACE/ci/conan-profiles/g++-10 --cxx 20
build-macos:
runs-on: macos-latest
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install conan and path
run: pip install conan==$CONAN_VERSION path==$PATH_VERSION --user
- name: Checkout repository
uses: actions/checkout@v1
- name: Install build tools
run: brew install ninja
- name: Build and test
run: python $GITHUB_WORKSPACE/ci/run-ci.py build-and-test --profile $GITHUB_WORKSPACE/ci/conan-profiles/macos11
build-windows-cxx14:
runs-on: windows-latest
strategy:
matrix:
compiler: [vs2019]
include:
- os: windows-latest
compiler: vs2019
vcvars_cmd: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
vcvars_args: x64 10.0.18362.0
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install conan and path
run: pip install conan==$env:CONAN_VERSION path==$env:PATH_VERSION --user
- name: Checkout repository
uses: actions/checkout@v1
- name: Install build tools
run: cinst ninja -y
- name: Build and test
shell: cmd
run: |
set CXX=cl
"${{ matrix.vcvars_cmd }}" ${{ matrix.vcvars_args }} && python %GITHUB_WORKSPACE%/ci/run-ci.py build-and-test --profile %GITHUB_WORKSPACE%/ci/conan-profiles/${{ matrix.compiler }}
build-windows-cxx17:
runs-on: windows-latest
strategy:
matrix:
compiler: [vs2019]
include:
- os: windows-latest
compiler: vs2019
vcvars_cmd: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
vcvars_args: x64 10.0.18362.0
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install conan and path
run: pip install conan==$env:CONAN_VERSION path==$env:PATH_VERSION --user
- name: Checkout repository
uses: actions/checkout@v1
- name: Install build tools
run: cinst ninja -y
- name: Build and test
shell: cmd
run: |
set CXX=cl
"${{ matrix.vcvars_cmd }}" ${{ matrix.vcvars_args }} && python %GITHUB_WORKSPACE%/ci/run-ci.py build-and-test --profile %GITHUB_WORKSPACE%/ci/conan-profiles/vs2019-cxx17
build-windows-cxx20:
runs-on: windows-latest
strategy:
matrix:
compiler: [vs2019]
include:
- os: windows-latest
compiler: vs2019
vcvars_cmd: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
vcvars_args: x64 10.0.18362.0
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install conan and path
run: pip install conan==$env:CONAN_VERSION path==$env:PATH_VERSION --user
- name: Checkout repository
uses: actions/checkout@v1
- name: Install build tools
run: cinst ninja -y
- name: Build and test
shell: cmd
run: |
set CXX=cl
"${{ matrix.vcvars_cmd }}" ${{ matrix.vcvars_args }} && python %GITHUB_WORKSPACE%/ci/run-ci.py build-and-test --profile %GITHUB_WORKSPACE%/ci/conan-profiles/vs2019-cxx20