-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.01 KB
/
clang.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
name: Clang
on: push
jobs:
ubuntu_clang:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
version: [7, 8, 9, 10, 11]
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 catch cmake clang-${{ matrix.version }} libxml2-dev pkg-config zlib1g-dev
- name: Install LLVM C++ Standard Library
run: |
sudo apt-get install -y libc++-${{ matrix.version }}-dev
if: matrix.version == 8
- 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: Tests
run: |
cd "$GITHUB_WORKSPACE"/build
ctest -V