fix when-any interface #153
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: build_and_test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04] | |
| version: [18, 19] | |
| cpp_standard: [20] | |
| build_type: [Debug, Release] | |
| runs-on: ${{matrix.os}} | |
| name: clang-${{matrix.version}}-${{matrix.build_type}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh ${{matrix.version}} | |
| sudo apt-get update | |
| sudo apt-get install ninja-build lld | |
| sudo ln -sf /usr/local/bin/ld /usr/bin/lld | |
| - name: Configure CMake | |
| run: | | |
| cmake . -DKELCORO_ENABLE_TESTING=ON \ | |
| -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | |
| -DCMAKE_CXX_COMPILER=clang++-${{matrix.version}} \ | |
| -DCMAKE_CXX_STANDARD=${{matrix.cpp_standard}} \ | |
| -B build -G "Ninja" | |
| - name: Build | |
| run: | |
| cmake --build build | |
| - name: Test | |
| run: | | |
| cd build | |
| ctest --output-on-failure -C ${{matrix.build_type}} -V | |
| - name: Configure CMake (ASAN) | |
| run: | | |
| cmake . -DKELCORO_ENABLE_TESTING=ON \ | |
| -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | |
| -DCMAKE_CXX_COMPILER=clang++-${{matrix.version}} \ | |
| -DCMAKE_CXX_STANDARD=${{matrix.cpp_standard}} \ | |
| -DKELCORO_ENABLE_ASAN=ON \ | |
| -B build_asan -G "Ninja" | |
| - name: Build (ASAN) | |
| run: | |
| cmake --build build_asan | |
| - name: Test (ASAN) | |
| run: | | |
| cd build_asan | |
| ctest --output-on-failure -C ${{matrix.build_type}} -V | |
| - name: Configure CMake (UBSAN) | |
| run: | | |
| cmake . -DKELCORO_ENABLE_TESTING=ON \ | |
| -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | |
| -DCMAKE_CXX_COMPILER=clang++-${{matrix.version}} \ | |
| -DCMAKE_CXX_STANDARD=${{matrix.cpp_standard}} \ | |
| -DKELCORO_ENABLE_UBSAN=ON \ | |
| -B build_ubsan -G "Ninja" | |
| - name: Build (UBSAN) | |
| run: | |
| cmake --build build_ubsan | |
| - name: Test (UBSAN) | |
| run: | | |
| cd build_ubsan | |
| ctest --output-on-failure -C ${{matrix.build_type}} -V |