fix: Compilation error due to missing std::tuple_size_v #23
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: Build | |
on: | |
push: | |
paths: | |
- '**.cpp' | |
- '**.hpp' | |
- '**.ipp' | |
- '**.cmake' | |
- '**.cmake.in' | |
- '**/CMakeLists.txt' | |
- '.github/workflows/build.yml' | |
- 'CMakePresets.json' | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: 'Windows/2022/MSVC', | |
os: windows-2022, | |
build-type: 'Release', | |
parallel: 2, | |
} | |
- { | |
name: 'MacOSX/13/AppleClang', | |
os: macos-13, | |
build-type: 'Debug', | |
parallel: 4, | |
} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: cmake --preset default -DCMAKE_BUILD_TYPE=${{ matrix.config.build-type }} | |
- name: Build | |
run: cmake --build --preset default --config ${{ matrix.config.build-type }} --parallel ${{ matrix.config.parallel }} | |
- name: Test | |
if: matrix.config.os == 'windows-2022' | |
run: build/test/${{ matrix.config.build-type }}/lambda-tuple-test.exe | |
- name: Test | |
if: matrix.config.os == 'macos-13' | |
run: build/test/lambda-tuple-test | |
gcc-build: | |
name: 'Ubuntu/22.04/GCC' | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: GCC 11 Configure CMake | |
run: | | |
cmake --preset default -DCMAKE_CXX_COMPILER=$(which g++-11) \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=on \ | |
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=on | |
- name: GCC 11 Build | |
run: cmake --build --preset default --parallel $(nproc) | |
- name: GCC 11 Test | |
run: build/test/lambda-tuple-test | |
- name: GCC 11 Install | |
run: cmake --install build --prefix build/out | |
clang-build: | |
name: 'Ubuntu/20.04/Clang' | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clang 10 Configure CMake | |
run: | | |
cmake --preset default -DCMAKE_CXX_COMPILER=$(which clang++-10) \ | |
"-DCMAKE_CXX_FLAGS=-stdlib=libc++ -stdlib++-isystem /usr/lib/llvm-10/include/c++/v1/ -Wno-unused-command-line-argument" \ | |
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld \ | |
-DCMAKE_BUILD_TYPE=Release | |
- name: Clang 10 Build | |
run: cmake --build --preset default --config Release --parallel $(nproc) | |
- name: Clang 10 Test | |
run: build/test/lambda-tuple-test |