Skip to content

Commit a5d11a3

Browse files
committed
Update CI to use docker image instead of Ubuntu package
1 parent 45d7940 commit a5d11a3

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/linux-ci.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@ name: Linux CI
22

33
on: [pull_request]
44

5+
# Cancels any in-progress workflow runs for the same PR when a new push is made,
6+
# allowing the runner to become available more quickly for the latest changes.
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
511
jobs:
612
build:
713
name: ${{ matrix.name }} ${{ matrix.build_type }}
8-
runs-on: ${{ matrix.os }}
14+
runs-on: ubuntu-latest
15+
container:
16+
image: borglab/gtsam:latest
17+
env:
18+
CMAKE_BUILD_TYPE: ${{ matrix.build_type }}
19+
volumes:
20+
- ${{ github.workspace }}:/gtdynamics
921

1022
env:
1123
CTEST_OUTPUT_ON_FAILURE: ON
@@ -17,19 +29,17 @@ jobs:
1729
matrix:
1830
# Github Actions requires a single row to be added to the build matrix.
1931
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
20-
name: [ubuntu-22.04-gcc-9, ubuntu-22.04-clang-12]
32+
name: [ubuntu-24.04-gcc-9, ubuntu-24.04-clang-12]
2133

2234
build_type: [Debug, Release]
2335
include:
24-
- name: ubuntu-22.04-gcc-9
25-
os: ubuntu-22.04
36+
- name: ubuntu-24.04-gcc-11
2637
compiler: gcc
27-
version: "9"
38+
version: "11"
2839

29-
- name: ubuntu-22.04-clang-12
30-
os: ubuntu-22.04
40+
- name: ubuntu-24.04-clang-16
3141
compiler: clang
32-
version: "12"
42+
version: "16"
3343

3444
steps:
3545
- name: Setup Compiler
@@ -54,20 +64,14 @@ jobs:
5464
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D2486D2DD83DB69272AFE98867170598AF249743
5565
sudo apt-get -y update
5666
57-
sudo apt-get -y install libtbb-dev libboost-all-dev libsdformat15-dev
67+
sudo apt-get -y install libsdformat15-dev
5868
5969
# Install CppUnitLite.
6070
git clone https://github.com/borglab/CppUnitLite.git
6171
cd CppUnitLite && mkdir build && cd $_
6272
cmake .. && sudo make -j4 install
6373
cd ../../
6474
65-
- name: GTSAM
66-
run: |
67-
sudo add-apt-repository -y ppa:borglab/gtsam-develop
68-
sudo apt-get -y update
69-
sudo apt-get -y install libgtsam-no-tbb-dev libgtsam-no-tbb-unstable-dev
70-
7175
- name: Checkout
7276
uses: actions/checkout@master
7377

0 commit comments

Comments
 (0)