Skip to content

Port to LLVM 17 and support LLVM 13-17 with dynamic and static linking #22

Port to LLVM 17 and support LLVM 13-17 with dynamic and static linking

Port to LLVM 17 and support LLVM 13-17 with dynamic and static linking #22

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