Counter-Attacks and garbage query interface #27
Workflow file for this run
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: C++ CI | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-linux: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
include: | |
- compiler-name: GCC 14 | |
cc: gcc-14 | |
cxx: g++-14 | |
install-script: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
sudo apt update | |
sudo apt install -y g++-14 | |
build-type: Debug | |
- compiler-name: GCC 14 | |
cc: gcc-14 | |
cxx: g++-14 | |
install-script: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
sudo apt update | |
sudo apt install -y g++-14 | |
build-type: Release | |
- compiler-name: Clang 18 | |
cc: clang-18 | |
cxx: clang++-18 | |
install-script: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 18 | |
sudo apt install libstdc++-14-dev | |
build-type: Debug | |
- compiler-name: Clang 18 | |
cc: clang-18 | |
cxx: clang++-18 | |
install-script: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 18 | |
sudo apt install libstdc++-14-dev | |
build-type: Release | |
name: ${{ matrix.compiler-name }} ${{ matrix.build-type }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install compiler (${{ matrix.compiler-name }}) | |
run: | | |
${{ matrix.install-script }} | |
- name: Configure CMake | |
run: | | |
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/${{ matrix.cc }} 100 | |
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/${{ matrix.cxx }} 100 | |
cmake -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} | |
- name: Fix kernel mmap rnd bits | |
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with | |
# high-entropy ASLR in much newer kernels that GitHub runners are | |
# using leading to random crashes: https://reviews.llvm.org/D148280 | |
run: sudo sysctl vm.mmap_rnd_bits=28 | |
- name: Build | |
run: cmake --build build | |
- name: Install | |
run: cmake --install build --prefix install | |
- name: Run Tests | |
run: ctest --test-dir build --verbose --output-on-failure | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
build-type: [ Debug, Release ] | |
name: MSVC ${{ matrix.build-type }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Ninja | |
run: choco install ninja | |
- name: Install CMake | |
run: choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' | |
- name: Set up Visual Studio Environment | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
- name: Configure CMake with Ninja and C++23 | |
run: cmake -B build -G "Ninja" -DCMAKE_CXX_STANDARD=23 -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} | |
- name: Build with Ninja | |
run: cmake --build build | |
- name: Install | |
run: cmake --install build --prefix install | |
- name: Run Tests | |
run: ctest --test-dir build --verbose --output-on-failure |