-
Notifications
You must be signed in to change notification settings - Fork 17
48 lines (39 loc) · 1.1 KB
/
make.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
name: Linux Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Compile and test on Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
compiler: [g++-14,clang++-18]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: sudo apt install uuid-dev uuid-runtime
- name: Install GCC compiler
run: sudo apt install g++-14
- name: install LLVM compiler
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main"
sudo apt update
sudo apt install clang-18
- name: Build binaries
env:
CXX: ${{ matrix.compiler }}
run: make -j5 release_debug
- name: Build tests
env:
CXX: ${{ matrix.compiler }}
run: make -j5 release_debug_test
- name: Run tests
run: make run_release_debug_test