-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.26 KB
/
build-cpp-libs.yml
File metadata and controls
55 lines (45 loc) · 1.26 KB
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: Build C++ libs
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
build-libs:
name: Build C++ libs
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
build-type: Debug
system-deps: "sudo apt -y install libboost-dev libboost-math-dev"
- os: ubuntu-24.04
build-type: Release
system-deps: "sudo apt -y install libboost-dev libboost-math-dev"
- os: macos-14
build-type: Debug
system-deps: "brew install boost"
- os: macos-14
build-type: Release
system-deps: "brew install boost"
steps:
- name: checkout repo & submodules
uses: actions/checkout@v5
- name: install system packages
run: |
${{ matrix.system-deps }}
- name: make build directory
run: |
mkdir ${{ matrix.build-type }}
- name: cmake configure
run: |
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
working-directory: ${{ matrix.build-type }}
- name: cmake build
run: |
cmake --build . --parallel
working-directory: ${{ matrix.build-type }}