bump 0.4.1: fix lint #135
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: bt tests | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Debug, Release] | |
os: [macos-latest, ubuntu-latest] | |
cpp_compiler: [g++-13, clang++] | |
include: | |
- os: ubuntu-latest | |
c_compiler: gcc-13 | |
cpp_compiler: g++-13 | |
- os: macos-latest | |
c_compiler: clang | |
cpp_compiler: clang++ | |
exclude: | |
- os: macos-latest | |
cpp_compiler: g++-13 | |
- os: ubuntu-latest | |
cpp_compiler: clang++ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Conan | |
run: pip install conan | |
- name: Configure Conan | |
run: conan profile detect | |
- name: Install Requirements | |
run: > | |
conan install . | |
--output-folder=${{ runner.workspace }}/build | |
--build=missing -s compiler.cppstd=20 | |
-s build_type=${{ matrix.build_type }} | |
- name: Configure CMake | |
working-directory: ${{runner.workspace}} | |
run: > | |
cmake -B ${{ runner.workspace }}/build -S ${{ github.workspace }} | |
-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} | |
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} | |
-DBT_TEST=1 | |
- name: Build Tests | |
working-directory: ${{runner.workspace}}/build/tests | |
run: make bt_tests | |
- name: Run Tests | |
working-directory: ${{runner.workspace}}/build | |
run: ctest --test-dir ./tests --output-on-failure | |
- name: Build benchmark | |
working-directory: ${{runner.workspace}}/build/tests | |
run: make bt_benchmark | |
- name: Run Benchmark | |
working-directory: ${{runner.workspace}}/build | |
run: ./tests/bt_benchmark |