-
Notifications
You must be signed in to change notification settings - Fork 49
55 lines (46 loc) · 1.33 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
name: CI
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
mode: [debug, release]
config-opt: [--enable-mcsat, --enable-thread-safety]
env: [CC=gcc CXX=g++, CC=clang CXX=clang++]
include:
- os: ubuntu-latest
mode: gcov
config-opt: --enable-mcsat
env: CC=gcc CXX=g++
- os: ubuntu-latest
mode: debug
config-opt: --enable-thread-safety --enable-mcsat
env: CC=gcc CXX=g++
name: ${{ matrix.os }}|${{ matrix.mode }}|${{ matrix.config-opt }}|${{ matrix.env }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
- name: Build
uses: ./.github/actions/build
with:
mode: ${{ matrix.mode }}
config-opt: ${{ matrix.config-opt }}
env: ${{ matrix.env }}
- name: Test
uses: ./.github/actions/test
with:
mode: ${{ matrix.mode }}
- name: Coverage
if: matrix.mode == 'gcov'
uses: ./.github/actions/coverage
- name: Coveralls
if: matrix.mode == 'gcov'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: 'coverage.info'