-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 1.34 KB
/
ubuntu-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
on:
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
compilers:
- c: gcc
cxx: g++
- c: clang
cxx: clang++
build_config:
- build_type: Debug
lto: false
- build_type: Release
lto: false
- build_type: Release
lto: true
env:
LTO_CONFIG: ${{ matrix.build_config.lto && '-DFULL_LTO=1' || '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get -y install libboost-dev cython3 clang lld llvm
- name: Create Build Directory
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMAKE
working-directory: ${{runner.workspace}}/build
run: CC=${{ matrix.compilers.c }} CXX=${{ matrix.compilers.cxx }} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_config.build_type }} -DBUILD_STF_PYTHON_LIB=ON $LTO_CONFIG
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{ matrix.build_config.build_type }} -j 4
- name: Regress
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{ matrix.build_config.build_type }} -j 4 --target regress