[Conan] Update conanfile.py #12
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: CI Tests | |
on: [push] | |
jobs: | |
build-and-test-linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
col-counts: ['-DLADEL_SIMPLE_COL_COUNTS=On', | |
'-DLADEL_SIMPLE_COL_COUNTS=Off'] | |
amd: ['-DLADEL_USE_AMD=On', | |
'-DLADEL_USE_AMD=Off'] | |
long: ['-DLADEL_64BIT_INDICES=On', | |
'-DLADEL_64BIT_INDICES=Off'] | |
float: ['-DLADEL_SINGLE_PRECISION=On', | |
'-DLADEL_SINGLE_PRECISION=Off'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Google Test | |
shell: bash | |
run: ./scripts/install-gtest.sh Debug | |
env: | |
VIRTUAL_ENV: /tmp/gtest-install | |
- name: Configure | |
run: cmake -S. -Bbuild ${{ matrix.col-counts }} ${{ matrix.amd }} ${{ matrix.long }} ${{ matrix.float }} | |
env: | |
CMAKE_PREFIX_PATH: /tmp/gtest-install | |
CMAKE_C_FLAGS: -Wall -Wextra -fsanitize=address,undefined | |
CMAKE_CXX_FLAGS: -Wall -Wextra -fsanitize=address,undefined | |
CMAKE_EXE_LINKER_FLAGS: -fsanitize=address,undefined | |
- name: Build | |
run: cmake --build build -j | |
- name: Run tests | |
run: ./build/test/ladel_run_all_tests --gtest_color=yes | |
build-and-test-windows: | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
col-counts: ['-DLADEL_SIMPLE_COL_COUNTS=On', | |
'-DLADEL_SIMPLE_COL_COUNTS=Off'] | |
amd: ['-DLADEL_USE_AMD=On', | |
'-DLADEL_USE_AMD=Off'] | |
long: ['-DLADEL_64BIT_INDICES=On', | |
'-DLADEL_64BIT_INDICES=Off'] | |
float: ['-DLADEL_SINGLE_PRECISION=On', | |
'-DLADEL_SINGLE_PRECISION=Off'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Google Test | |
shell: powershell | |
run: ./scripts/install-gtest.ps1 Debug | |
env: | |
VIRTUAL_ENV: ${{ runner.temp }}/gtest-install | |
- name: Configure | |
run: cmake -S. -Bbuild ${{ matrix.col-counts }} ${{ matrix.amd }} ${{ matrix.long }} ${{ matrix.float }} | |
env: | |
CMAKE_PREFIX_PATH: ${{ runner.temp }}/gtest-install | |
CMAKE_C_FLAGS: /Wall | |
CMAKE_CXX_FLAGS: /Wall | |
- name: Build | |
run: cmake --build build --config Debug -j | |
- name: Run tests | |
run: ./build/test/Debug/ladel_run_all_tests.exe --gtest_color=yes |