[mdarray] Add conversions to mdspan #1009
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: Clang-Tidy | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
cxx: [20, 23, 26] | |
fail-fast: false | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Update | |
run: sudo apt update -y | |
- name: Install LLVM | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 18 all | |
which run-clang-tidy | |
- name: CMake configure | |
run: > | |
cmake -S . | |
-G "Unix Makefiles" | |
-B cmake-build-tidy | |
-D CMAKE_BUILD_TYPE=Debug | |
-D CMAKE_C_COMPILER="clang-18" | |
-D CMAKE_CXX_COMPILER="clang++-18" | |
-D CMAKE_CXX_STANDARD="${{ matrix.cxx }}" | |
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON | |
-D TETL_BUILD_WERROR=ON | |
-D TETL_BUILD_WEVERYTHING=ON | |
- name: Clang-Tidy check | |
run: CLANG_VERSION="-18" BUILD_DIR=cmake-build-tidy make tidy-check |