-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (32 loc) · 1.05 KB
/
ccpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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