-
Notifications
You must be signed in to change notification settings - Fork 60
35 lines (28 loc) · 701 Bytes
/
Copy pathci.yaml
File metadata and controls
35 lines (28 loc) · 701 Bytes
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
name: CI
on:
push:
pull_request:
jobs:
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
# @see https://stackoverflow.com/a/68940067
compiler: [{cc: clang-15, cxx: clang++-15}, {cc: gcc, cxx: g++}]
std: [14, 17]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get -y update && sudo apt-get -y install \
clang-15 \
libboost-all-dev
- name: Configure
run: |
CC=${{ matrix.compiler.cc }} CXX=${{ matrix.compiler.cxx }} cmake -DCMAKE_CXX_STANDARD=${{ matrix.std }} .
- name: Build
run: |
make
- name: Test
run: |
make test