Skip to content

Commit 5883e64

Browse files
committed
CI: add a GitHub Actions workflow
1 parent 7af7d8f commit 5883e64

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
on:
3+
push:
4+
branches: main
5+
pull_request:
6+
branches: main
7+
8+
jobs:
9+
ubuntu:
10+
name: Ubuntu ${{ matrix.version }} (${{ matrix.compiler }})
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
compiler: [clang++, g++]
15+
version: [18.04, 20.04]
16+
17+
runs-on: ubuntu-${{ matrix.version }}
18+
env:
19+
CXX: ${{ matrix.compiler }}
20+
DEBIAN_FRONTEND: noninteractive
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v3
25+
26+
- name: Install dependencies
27+
run: |
28+
sudo apt update
29+
sudo apt install -y cmake help2man libboost-dev \
30+
libboost-filesystem-dev libboost-program-options-dev \
31+
libboost-python-dev libboost-regex-dev
32+
33+
- name: Build and check
34+
run: make distcheck

0 commit comments

Comments
 (0)