Add xsimd::get<>() for optimized compile-time element extraction #1768
Workflow file for this run
This file contains hidden or 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: sanitizer | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: 'sanitizer - ${{ matrix.flags }}' | |
| strategy: | |
| matrix: | |
| flags: | |
| - sanitize=address | |
| - sanitize=undefined | |
| - fast-math -fsanitize=undefined | |
| llvm-version: [20] | |
| env: | |
| CC: clang-${{ matrix.llvm-version }} | |
| CXX: clang++-${{ matrix.llvm-version }} | |
| steps: | |
| - name: Checkout xsimd | |
| uses: actions/checkout@v6 | |
| - name: Setup compiler | |
| run: | | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh ${{ matrix.llvm-version }} | |
| - name: Configure build | |
| run: | | |
| cmake -B_build \ | |
| -DBUILD_TESTS=ON \ | |
| -DBUILD_BENCHMARK=ON \ | |
| -DBUILD_EXAMPLES=ON \ | |
| -DDOWNLOAD_DOCTEST=ON \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DCMAKE_CXX_FLAGS='-f${{ matrix.flags }} -O0 -g -fno-inline' \ | |
| -G Ninja | |
| - name: Build | |
| run: cmake --build _build | |
| - name: Test | |
| run: ./_build/test/test_xsimd |