try again annoying github ci #144
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 gcc-13 | ||
if: {{ matrix.os }} == 'ubuntu-latest' | ||
run: > | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && | ||
sudo apt-get update -y && | ||
sudo apt-get install gcc-13 | ||
- name: Install Conan | ||
run: pip install conan | ||
- name: Configure Conan | ||
run: conan profile detect | ||
- name: Install Requirements | ||
working-directory: ./tests | ||
run: > | ||
conan install . | ||
--output-folder=./build | ||
--build=missing -s compiler.cppstd=20 | ||
-s build_type=${{ matrix.build_type }} | ||
- name: Configure CMake | ||
working-directory: ./tests | ||
run: > | ||
cmake -B build -S . | ||
-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} | ||
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} | ||
- name: Build Tests | ||
working-directory: ./tests/build | ||
run: make bt_tests | ||
- name: Run Tests | ||
working-directory: ./tests/build | ||
run: ctest --test-dir . --output-on-failure | ||
- name: Build benchmark | ||
working-directory: ./tests/build | ||
run: make bt_benchmark | ||
- name: Run Benchmark | ||
working-directory: ./tests/build | ||
run: ./bt_benchmark |