Close version 3.24.0 #1849
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: Ubuntu | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
ubuntu-build: | |
name: Build on Ubuntu | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
compiler: [g++-11, clang++-18] | |
buildmode: [Debug, Release] | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install cmake libssl-dev libcurl4-openssl-dev ninja-build -y --no-install-recommends | |
echo "CC=$(echo ${{matrix.compiler}} | sed -e 's/^g++/gcc/' | sed 's/+//g')" >> $GITHUB_ENV | |
- name: Install gcc | |
run: | | |
sudo apt install ${{matrix.compiler}} -y --no-install-recommends | |
# Temporary workaround for libasan bug stated here: https://github.com/google/sanitizers/issues/1716 | |
sudo sysctl vm.mmap_rnd_bits=28 | |
if: startsWith(matrix.compiler, 'g') | |
- name: Install clang | |
run: | | |
CLANG_VERSION=$(echo ${{matrix.compiler}} | cut -d- -f2) | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh ${CLANG_VERSION} | |
if: startsWith(matrix.compiler, 'clang') | |
- name: Configure CMake | |
run: cmake -S . -B build -GNinja | |
env: | |
CXX: ${{matrix.compiler}} | |
CMAKE_BUILD_TYPE: ${{matrix.buildmode}} | |
- name: Build | |
run: cmake --build build | |
- name: Tests | |
working-directory: ${{github.workspace}}/build | |
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure --repeat until-pass:5 | |
- name: Sanity check main executable | |
working-directory: ${{github.workspace}}/build | |
run: ./coincenter --help |