Skip to content

fix next_iter test #585

fix next_iter test

fix next_iter test #585

Workflow file for this run

name: Build and run Tests
on: [ pull_request, push ]
concurrency:
group: build-and-run-tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-run-tests:
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-24.04
compiler: llvm-19
- os: ubuntu-24.04
compiler: llvm-20
- os: ubuntu-24.04
compiler: gcc-15
- os: ubuntu-24.04
compiler: gcc-16
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.compiler }})
defaults:
run:
shell: bash
steps:
- name: Add compiler repos
uses: dice-group/cpp-conan-release-reusable-workflow/.github/actions/setup_apt@main
- name: Setup Cpp
uses: aminya/setup-cpp@v1
with:
compiler: ${{ matrix.config.compiler }}
vcvarsall: false
cmake: 3.29.3
ninja: true
vcpkg: false
ccache: false
clangtidy: false
conan: 2.29.0
cppcheck: false
gcovr: false
opencppcoverage: false
- name: add conan user
run: |
conan remote add -f dice-group https://conan.dice-research.org/artifactory/api/conan/tentris
- name: Cache conan data
id: cache-conan
uses: actions/cache@v4
with:
path: ~/.conan2/p
key: ${{ matrix.config.os }}-${{ matrix.config.compiler }}
- uses: actions/checkout@v4.1.6
- name: Get dependency provider
uses: dice-group/cpp-conan-release-reusable-workflow/.github/actions/add_conan_provider@main
- name: Configure CMake
run: cmake -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined" -DCMAKE_BUILD_TYPE=Debug -DWITH_SVECTOR=ON -DWITH_BOOST=ON -DBUILD_TESTING=On -DBUILD_EXAMPLES=On -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -G Ninja -B build .
- name: Build tests and examples
working-directory: build
run: cmake --build . --parallel 2
- name: Run tests
working-directory: build
run: ctest --verbose --parallel 2
- name: Run examples
working-directory: build
run: |
for example in examples/example*; do
echo "executing ${example}"
./${example}
done