Skip to content

Commit 6e4b9d1

Browse files
committed
Add GitHub CI
1 parent 26fae68 commit 6e4b9d1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
strategy:
10+
matrix:
11+
compiler:
12+
- { name: gcc, version: 10}
13+
- { name: gcc, version: 11}
14+
- { name: gcc, version: 12}
15+
- { name: gcc, version: 13}
16+
- { name: gcc, version: 14}
17+
- { name: clang, version: 16}
18+
- { name: clang, version: 17}
19+
- { name: clang, version: 18}
20+
name: Build (${{ matrix.compiler.name }} ${{ matrix.compiler.version }})
21+
runs-on: ubuntu-24.04
22+
steps:
23+
- name: Install dependencies
24+
run: |
25+
sudo add-apt-repository universe
26+
sudo apt-get update
27+
sudo apt-get install --assume-yes --no-install-recommends ca-certificates cmake ninja-build git libtbb-dev libxxhash-dev
28+
- name: Install GCC
29+
if: ${{ matrix.compiler.name == 'gcc' }}
30+
run: |
31+
sudo apt-get install --assume-yes --no-install-recommends gcc-${{ matrix.compiler.version }} g++-${{ matrix.compiler.version }}
32+
echo "CC=/usr/bin/gcc-${{ matrix.compiler.version }}" >> $GITHUB_ENV
33+
echo "CXX=/usr/bin/g++-${{ matrix.compiler.version }}" >> $GITHUB_ENV
34+
- name: Install Clang
35+
if: ${{ matrix.compiler.name == 'clang' }}
36+
run: |
37+
sudo apt-get install --assume-yes --no-install-recommends clang-${{ matrix.compiler.version }}
38+
echo "CC=/usr/bin/clang-${{ matrix.compiler.version }}" >> $GITHUB_ENV
39+
echo "CXX=/usr/bin/clang++-${{ matrix.compiler.version }}" >> $GITHUB_ENV
40+
- uses: actions/checkout@v4
41+
with:
42+
submodules: recursive
43+
- name: Build
44+
run: make

0 commit comments

Comments
 (0)