forked from SAtacker/quick-ftxui
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (48 loc) · 1.25 KB
/
linux_build.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Linux Build
on:
push:
branches: [ master ]
paths:
- ".github/workflows/linux_build.yml"
- "include/**"
- "src/**"
- "tests/**"
- "CMakeLists.txt"
pull_request:
branches: [ master ]
paths:
- ".github/workflows/linux_build.yml"
- "include/**"
- "src/**"
- "tests/**"
- "CMakeLists.txt"
jobs:
build:
name: ${{matrix.cxx}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cxx:
- g++-10
- clang++-12
include:
- cxx: g++-10
compiler: g++-10
- cxx: clang++-12
compiler: clang++-12
env:
CXX: ${{matrix.cxx}}
CMAKE_PREFIX_PATH: ${{github.workspace}}/.local
steps:
- uses: actions/checkout@v2
- name: Install Boost
run: sudo apt-get install -y ${{matrix.compiler}} libboost-all-dev
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --parallel
- name: Test
run: pushd build && cmake .. -DQUICK_FTXUI_TESTS=ON && cmake --build . --parallel && ctest -C Release && popd
- name: Install
run: cmake --install build --prefix $CMAKE_PREFIX_PATH