-
Notifications
You must be signed in to change notification settings - Fork 49
56 lines (47 loc) · 1.39 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
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: windows-latest
mode: release
config-opt: ""
env: ""
name: ${{ matrix.os }}|${{ matrix.mode }}|${{ matrix.config-opt }}|${{ matrix.env }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- 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
if: matrix.os != 'windows-latest'
uses: ./.github/actions/test
with:
mode: ${{ matrix.mode }}
- name: Coverage
if: matrix.os != 'windows-latest' && matrix.mode == 'gcov'
uses: ./.github/actions/coverage
- name: Coveralls
if: matrix.os != 'windows-latest' && matrix.mode == 'gcov'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: 'coverage.info'