Skip to content

ci: move GitLab pipeline builds from Debian 11 to Debian 12 #5

ci: move GitLab pipeline builds from Debian 11 to Debian 12

ci: move GitLab pipeline builds from Debian 11 to Debian 12 #5

Workflow file for this run

name: Clang
on: push
jobs:
clang:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
version: [12, 13, 14]
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Debian packages
run: |
sudo apt-get update
sudo apt-get install -y cmake clang-${{ matrix.version }} 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: Run tests
run: |
cd "$GITHUB_WORKSPACE/build"
ctest -V