Skip to content

Commit 22c475c

Browse files
authored
CI using GitHub Actions (#26)
Since Travis CI shut down, we should switch to GitHub Actions. Prepared for inclusion of clang but removed due to build errors.
1 parent 1526598 commit 22c475c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
ci:
9+
runs-on: ubuntu-22.04
10+
strategy:
11+
matrix:
12+
# @see https://stackoverflow.com/a/68940067
13+
compiler: [{cc: gcc, cxx: g++}]
14+
std: [14, 17]
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get -y update && sudo apt-get -y install \
21+
libboost-all-dev
22+
23+
- name: Configure
24+
run: |
25+
CC=${{ matrix.compiler.cc }} CXX=${{ matrix.compiler.cxx }} cmake -DCMAKE_CXX_STANDARD=${{ matrix.std }} .
26+
27+
- name: Build
28+
run: |
29+
make
30+
31+
- name: Test
32+
run: |
33+
make test
34+

0 commit comments

Comments
 (0)