ci: move Clang 14 build on GHA from Ubuntu 22.04 to Ubuntu 24.04 #85
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: Clang | |
on: push | |
jobs: | |
clang: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- version: 11 | |
os: ubuntu-22.04 | |
- version: 12 | |
os: ubuntu-22.04 | |
- version: 13 | |
os: ubuntu-22.04 | |
- version: 14 | |
os: ubuntu-24.04 | |
- version: 16 | |
os: ubuntu-24.04 | |
- version: 18 | |
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 clang-${{ matrix.version }} libgl-dev libglfw3-dev libwebp-dev pkg-config | |
- name: Build with Clang ${{ matrix.version }} | |
run: | | |
export CXX=clang++-${{ matrix.version }} | |
export CC=clang-${{ matrix.version }} | |
cd $GITHUB_WORKSPACE | |
mkdir build | |
cd build | |
cmake ../ | |
make -j2 | |
- name: Tests | |
run: | | |
cd "$GITHUB_WORKSPACE"/build | |
ctest -V | |
- name: Build with Clang ${{ matrix.version }}, statically linking standard libraries | |
run: | | |
export CXX=clang++-${{ matrix.version }} | |
export CC=clang-${{ matrix.version }} | |
cd $GITHUB_WORKSPACE | |
mkdir build_static_std_libs | |
cd build_static_std_libs | |
cmake ../ -DENABLE_LTO=ON -DENABLE_STATIC_STANDARD_LIBRARIES=ON | |
make -j2 | |
if: matrix.version == 12 || matrix.version == 18 | |
- name: Tests of build with statically linked standard libraries | |
run: | | |
cd "$GITHUB_WORKSPACE"/build_static_std_libs | |
ctest -V | |
if: matrix.version == 12 || matrix.version == 18 |