Allow getrandom syscall for HwAsan builds
#1492
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: ubuntu-cmake | |
| on: [push, pull_request] | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Ubuntu 24.04: Use preinstalled Clang 19, 18 | |
| - os: ubuntu-24.04 | |
| compiler: clang | |
| compiler-version: 19 | |
| libclang-version: 19 | |
| ignore-errors: false | |
| - os: ubuntu-24.04 | |
| compiler: clang | |
| compiler-version: 18 | |
| libclang-version: 19 | |
| ignore-errors: false | |
| # Ubuntu 24.04: Use preinstalled GCC 14.2.0, 13.2.0 | |
| - os: ubuntu-24.04 | |
| compiler: gcc | |
| compiler-version: 14 | |
| libclang-version: 19 | |
| ignore-errors: false | |
| - os: ubuntu-24.04 | |
| compiler: gcc | |
| compiler-version: 13 | |
| libclang-version: 19 | |
| ignore-errors: false | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.ignore-errors }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Cache dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| key: ${{matrix.os}}-${{matrix.compiler}}${{matrix.compiler-version}} | |
| path: | | |
| ${{github.workspace}}/build/_deps | |
| - name: Install ninja-build tool | |
| uses: turtlesec-no/get-ninja@1.1.0 | |
| - name: Install/configure Clang compiler toolchain | |
| if: matrix.compiler == 'clang' | |
| run: | | |
| sudo apt-get install -qy \ | |
| clang-${{matrix.compiler-version}} \ | |
| libclang-${{matrix.libclang-version}}-dev \ | |
| libclang-rt-${{matrix.libclang-version}}-dev \ | |
| llvm-${{matrix.libclang-version}}-dev | |
| echo "CXX=clang++-${{matrix.compiler-version}}" >> $GITHUB_ENV | |
| echo "CC=clang-${{matrix.compiler-version}}" >> $GITHUB_ENV | |
| - name: Install/configure GCC compiler toolchain | |
| if: matrix.compiler == 'gcc' | |
| run: | | |
| sudo apt-get install -qy \ | |
| g++-${{matrix.compiler-version}} \ | |
| libclang-${{matrix.libclang-version}}-dev \ | |
| libclang-rt-${{matrix.libclang-version}}-dev \ | |
| llvm-${{matrix.libclang-version}}-dev | |
| echo "CXX=g++-${{matrix.compiler-version}}" >> $GITHUB_ENV | |
| echo "CC=gcc-${{matrix.compiler-version}}" >> $GITHUB_ENV | |
| - name: Create Build Environment | |
| run: | | |
| pip3 install absl-py | |
| mkdir -p "$GITHUB_WORKSPACE/build" | |
| - name: Configure CMake | |
| run: | | |
| cmake \ | |
| -S $GITHUB_WORKSPACE \ | |
| -B $GITHUB_WORKSPACE/build \ | |
| -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
| - name: Build | |
| run: | | |
| cmake \ | |
| --build $GITHUB_WORKSPACE/build \ | |
| --config $BUILD_TYPE | |
| - name: Test | |
| run: | | |
| ctest \ | |
| --test-dir $GITHUB_WORKSPACE/build \ | |
| -C $BUILD_TYPE \ | |
| --output-on-failure \ | |
| -R SapiTest |