ci: switch build with sanitizers to newer Ubuntu 24.04 #192
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: GCC | |
on: push | |
jobs: | |
gcc: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- version: 9 | |
os: ubuntu-22.04 | |
- version: 10 | |
os: ubuntu-22.04 | |
- version: 11 | |
os: ubuntu-22.04 | |
- version: 12 | |
os: ubuntu-22.04 | |
- version: 13 | |
os: ubuntu-24.04 | |
- version: 14 | |
os: ubuntu-24.04 | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE. | |
- uses: actions/checkout@v4 | |
- name: Install Debian packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y catch2 cmake g++-${{ matrix.version }} libfuse3-dev liblz4-dev pkg-config zlib1g-dev | |
- name: Syntax check | |
run: | | |
export CXX=g++-${{ matrix.version }} | |
export CFLAGS=-D_FILE_OFFSET_BITS=64 | |
./ci/cpplint.sh | |
if: matrix.version == 12 | |
- name: Build with GCC ${{ matrix.version }} | |
run: | | |
export CXX=g++-${{ matrix.version }} | |
export CC=gcc-${{ matrix.version }} | |
cd $GITHUB_WORKSPACE | |
mkdir build | |
cd build | |
cmake ../ | |
make -j2 | |
- name: Tests | |
run: | | |
cd "$GITHUB_WORKSPACE"/build | |
ctest -V | |
- name: Build without LZ4 support on GCC ${{ matrix.version }} | |
run: | | |
export CXX=g++-${{ matrix.version }} | |
export CC=gcc-${{ matrix.version }} | |
cd $GITHUB_WORKSPACE | |
mkdir build-no-lz4 | |
cd build-no-lz4 | |
cmake ../ -DAUTODETECT_LZ4=OFF -DDISABLE_LZ4=ON | |
make -j2 | |
if: matrix.version == 9 | |
- name: Test build without LZ4 support | |
run: | | |
cd "$GITHUB_WORKSPACE"/build-no-lz4 | |
ctest -V | |
if: matrix.version == 9 | |
gcc_lto_static: | |
runs-on: ubuntu-22.04 | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE. | |
- uses: actions/checkout@v4 | |
- name: Install Debian packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y catch2 cmake g++-12 libfuse3-dev liblz4-dev pkg-config zlib1g-dev | |
- name: Build with GCC 12 | |
run: | | |
export CXX=g++-12 | |
export CC=gcc-12 | |
cd $GITHUB_WORKSPACE | |
mkdir build | |
cd build | |
cmake -DENABLE_LTO=ON -DENABLE_STATIC_LINKING=ON ../ | |
make -j2 | |
- name: Tests | |
run: | | |
cd "$GITHUB_WORKSPACE"/build | |
ctest -V |