Fix: map iterator for C++98 (#150) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |