-
Notifications
You must be signed in to change notification settings - Fork 918
99 lines (85 loc) · 2.94 KB
/
build-linux.yml
File metadata and controls
99 lines (85 loc) · 2.94 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
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
name: Linux CI
on:
pull_request:
paths-ignore:
- '**.md'
- '**.ipynb'
- 'myst.yml'
# Cancels any in-progress workflow runs for the same PR when a new push is made,
# allowing the runner to become available more quickly for the latest changes.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.name }} ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
container:
image: borglab/gtsam-ci:${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.version }}
env:
CMAKE_BUILD_TYPE: ${{ matrix.build_type }}
GTSAM_BUILD_UNSTABLE: ${{ matrix.build_unstable }}
volumes:
- ${{ github.workspace }}:/gtsam
strategy:
fail-fast: true
matrix:
# Github Actions requires a single row to be added to the build matrix.
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
name: [
# "Bracket" the versions from GCC [11-14] and Clang [11-16]
ubuntu-22.04-gcc-11,
ubuntu-22.04-clang-11,
ubuntu-24.04-gcc-14,
ubuntu-24.04-clang-16,
ubuntu-24.04-clang-16-boost,
ubuntu-24.04-clang-16-geographiclib,
]
build_type: [Debug, Release]
build_unstable: [ON]
include:
- name: ubuntu-22.04-gcc-11
os: ubuntu-22.04
compiler: gcc
version: "11"
- name: ubuntu-22.04-clang-11
os: ubuntu-22.04
compiler: clang
version: "11"
- name: ubuntu-24.04-gcc-14
os: ubuntu-24.04
compiler: gcc
version: "14"
- name: ubuntu-24.04-clang-16
os: ubuntu-24.04
compiler: clang
version: "16"
- name: ubuntu-24.04-clang-16-boost
os: ubuntu-24.04
compiler: clang
version: "16"
- name: ubuntu-24.04-clang-16-geographiclib
os: ubuntu-24.04
compiler: clang
version: "16"
exclude:
- name: ubuntu-24.04-clang-16-boost
build_type: Debug
- name: ubuntu-24.04-clang-16-geographiclib
build_type: Debug
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Boost Environment (Conditional)
if : contains(matrix.name, 'boost') && matrix.build_type == 'Release'
run: |
echo "GTSAM_USE_BOOST_FEATURES=ON" >> $GITHUB_ENV
echo "GTSAM_ENABLE_BOOST_SERIALIZATION=ON" >> $GITHUB_ENV
echo "Using Boost features."
- name: Set GeographicLib Environment (Conditional)
if: contains(matrix.name, 'geographiclib') && matrix.build_type == 'Release'
run: |
echo "GTSAM_ENABLE_GEOGRAPHICLIB=ON" >> $GITHUB_ENV
- name: Build and Test
run: |
.github/scripts/unix.sh -t