-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 1.16 KB
/
ubuntu_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
38
39
name: Ubuntu-Clang
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
except: [1, 0]
pic: [1, 0]
rtti: [1, 0]
steps:
- uses: actions/checkout@v2
- name: setup clang
run: |
sudo update-alternatives \
--install /usr/lib/llvm llvm /usr/lib/llvm-15 1000 \
--slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 \
--slave /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15
sudo update-alternatives \
--install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives \
--install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
- name: init submodules
run: git submodule init
- name: update submodules
run: git submodule update
- name: make
run: CXX=clang++ AR=llvm-ar RANLIB=llvm-ranlib make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}}
- name: test
run: CXX=clang++ AR=llvm-ar RANLIB=llvm-ranlib make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}} check