-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (33 loc) · 1.12 KB
/
ubuntu_gcc_conan.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: Ubuntu-GCC-Conan
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 gcc
run: |
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-10 1000 \
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 \
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10
sudo update-alternatives \
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
- name: install conan
run: sudo pip install 'conan<2'
- name: install dependencies
run: conan install . --build missing -s compiler.libcxx=libstdc++11
- name: make
run: URING=0 make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}} all
- name: test
run: URING=0 make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}} check