forked from mtl1979/Bittorium
-
Notifications
You must be signed in to change notification settings - Fork 3
130 lines (111 loc) · 5.45 KB
/
cmake.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: CI CMake
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci-cmake:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Ubuntu 20.04 GCC 7
os: ubuntu-20.04
c_compiler: gcc-7
cxx_compiler: g++-7
packages: build-essential python3-dev gcc-7 g++-7 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 GCC 8
os: ubuntu-20.04
c_compiler: gcc-8
cxx_compiler: g++-8
packages: build-essential python3-dev gcc-8 g++-8 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 GCC 9
os: ubuntu-20.04
c_compiler: gcc-9
cxx_compiler: g++-9
packages: build-essential python3-dev gcc-9 g++-9 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 GCC 10
os: ubuntu-20.04
c_compiler: gcc-10
cxx_compiler: g++-10
packages: build-essential python3-dev gcc-10 g++-10 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 Clang 6.0
os: ubuntu-20.04
c_compiler: clang-6.0
cxx_compiler: clang++-6.0
packages: build-essential python3-dev clang-6.0 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 Clang 7
os: ubuntu-20.04
c_compiler: clang-7
cxx_compiler: clang++-7
packages: build-essential python3-dev clang-7 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 Clang 8
os: ubuntu-20.04
c_compiler: clang-8
cxx_compiler: clang++-8
packages: build-essential python3-dev clang-8 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 Clang 9
os: ubuntu-20.04
c_compiler: clang-9
cxx_compiler: clang++-9
packages: build-essential python3-dev clang-9 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 Clang 10
os: ubuntu-20.04
c_compiler: clang-10
cxx_compiler: clang++-10
packages: build-essential python3-dev clang-10 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 20.04 Clang 11
os: ubuntu-20.04
c_compiler: clang-11
cxx_compiler: clang++-11
packages: build-essential python3-dev clang-11 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 22.04 GCC 11
os: ubuntu-22.04
c_compiler: gcc-11
cxx_compiler: g++-11
packages: build-essential python3-dev gcc-11 g++-11 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 22.04 GCC 12
os: ubuntu-22.04
c_compiler: gcc-12
cxx_compiler: g++-12
packages: build-essential python3-dev gcc-12 g++-12 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 22.04 Clang 12
os: ubuntu-22.04
c_compiler: clang-12
cxx_compiler: clang++-12
packages: build-essential python3-dev clang-12 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 22.04 Clang 13
os: ubuntu-22.04
c_compiler: clang-13
cxx_compiler: clang++-13
packages: build-essential python3-dev clang-13 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 22.04 Clang 14
os: ubuntu-22.04
c_compiler: clang-14
cxx_compiler: clang++-14
packages: build-essential python3-dev clang-14 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
- name: Ubuntu 22.04 Clang 15
os: ubuntu-22.04
c_compiler: clang-15
cxx_compiler: clang++-15
packages: build-essential python3-dev clang-15 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.packages }}
- name: Generate project files
run: |
mkdir -p build
cd build
cmake ..
env:
CC: ${{ matrix.c_compiler }}
CXX: ${{ matrix.cxx_compiler }}
- name: Compile source code
run: |
cd build
cmake --build .