Skip to content

Let CMake search for the latest version of installed LLVM packages #24

Let CMake search for the latest version of installed LLVM packages

Let CMake search for the latest version of installed LLVM packages #24

Workflow file for this run

name: C/C++ CI
on: [push, pull_request]
jobs:
llvm:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
version: [13, 14, 15, 16, 17]
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- name: Install package repository for Clang/LLVM ${{ matrix.version }}
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.version }}
- name: Install build prerequisites and Clang/LLVM ${{ matrix.version }}
run: |
sudo apt-get -y install build-essential \
cmake \
libcurl4-openssl-dev \
libedit-dev \
llvm-${{ matrix.version }}-dev \
libclang-${{ matrix.version }}-dev
- name: Build xunused for Clang/LLVM ${{ matrix.version }}
run: |
mkdir build
cd build
cmake -DLLVM_VERSION_REQUIRED=${{ matrix.version }} ..
make