Skip to content

Support LLVM 18

Support LLVM 18 #33

Workflow file for this run

name: C/C++ CI
on:
push:
branches: main
pull_request:
jobs:
llvm:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
version: [13, 14, 15, 16, 17, 18]
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
cmake -B build
make -C build