-
-
Notifications
You must be signed in to change notification settings - Fork 68
54 lines (46 loc) · 1.45 KB
/
LinuxMediumBuild.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
name: Linux Medium Build
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [ "release" ]
use_cxx: [ "clang++-15", "g++-13" ]
use_cpp98: [ "OFF", "ON" ]
use_float: [ "OFF", "ON" ]
steps:
- uses: actions/checkout@v4
- name: Restore cmake dependencies
id: cache-restore-cmake-deps
uses: actions/cache/restore@v4
with:
path: |
build/_deps
key: ${{ runner.os }}-cmake-deps
- name: Building FuzzyLite
env:
CXX: ${{ matrix.use_cxx }}
run: |
make configure BUILD=${{ matrix.build_type }} CPP98=${{ matrix.use_cpp98 }} FLOAT=${{ matrix.use_float }}
make build
make test
- name: Coverage
if: ${{ matrix.use_cxx == 'clang++-15' && matrix.build_type == 'release' && matrix.use_cpp98 == 'OFF' && matrix.use_float == 'OFF' }}
env:
CXX: "clang++-15"
GCOV: "llvm-cov-15 gcov"
run: |
make configure BUILD=${{ matrix.build_type }} CPP98=${{ matrix.use_cpp98 }} FLOAT=${{ matrix.use_float }} COVERAGE=ON
make build
make test
pip install gcovr
make coverage
- name: Coveralls
if: ${{ hashFiles('build/coveralls.json') != '' }}
uses: coverallsapp/github-action@v2
with:
file: build/coveralls.json