Skip to content

Commit ed2909c

Browse files
committed
test system ubuntu case
1 parent 3636ef6 commit ed2909c

File tree

2 files changed

+50
-47
lines changed

2 files changed

+50
-47
lines changed

.github/workflows/build-special.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -32,66 +32,66 @@ jobs:
3232
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
3333
name:
3434
[
35-
ubuntu-clang-deprecated,
36-
ubuntu-clang-quaternions,
37-
ubuntu-clang-tbb,
38-
ubuntu-clang-cayleymap,
35+
# ubuntu-clang-deprecated,
36+
# ubuntu-clang-quaternions,
37+
# ubuntu-clang-tbb,
38+
# ubuntu-clang-cayleymap,
3939
ubuntu-clang-system-libs,
40-
ubuntu-no-boost,
41-
ubuntu-no-unstable,
42-
ubuntu-build-examples,
40+
# ubuntu-no-boost,
41+
# ubuntu-no-unstable,
42+
# ubuntu-build-examples,
4343
]
4444

4545
build_type: [Debug, Release]
4646

4747
include:
48-
- name: ubuntu-clang-deprecated
49-
os: ubuntu-22.04
50-
compiler: clang
51-
version: "14"
52-
flag: deprecated
53-
54-
- name: ubuntu-clang-quaternions
55-
os: ubuntu-22.04
56-
compiler: clang
57-
version: "14"
58-
flag: quaternions
59-
60-
- name: ubuntu-clang-tbb
61-
os: ubuntu-22.04
62-
compiler: clang
63-
version: "14"
64-
flag: tbb
65-
66-
- name: ubuntu-clang-cayleymap
67-
os: ubuntu-22.04
68-
compiler: clang
69-
version: "14"
70-
flag: cayley
48+
# - name: ubuntu-clang-deprecated
49+
# os: ubuntu-22.04
50+
# compiler: clang
51+
# version: "14"
52+
# flag: deprecated
53+
54+
# - name: ubuntu-clang-quaternions
55+
# os: ubuntu-22.04
56+
# compiler: clang
57+
# version: "14"
58+
# flag: quaternions
59+
60+
# - name: ubuntu-clang-tbb
61+
# os: ubuntu-22.04
62+
# compiler: clang
63+
# version: "14"
64+
# flag: tbb
65+
66+
# - name: ubuntu-clang-cayleymap
67+
# os: ubuntu-22.04
68+
# compiler: clang
69+
# version: "14"
70+
# flag: cayley
7171

7272
- name: ubuntu-clang-system-libs
7373
os: ubuntu-22.04
7474
compiler: clang
7575
version: "14"
7676
flag: system
7777

78-
- name: ubuntu-no-boost
79-
os: ubuntu-22.04
80-
compiler: clang
81-
version: "14"
82-
flag: no_boost
78+
# - name: ubuntu-no-boost
79+
# os: ubuntu-22.04
80+
# compiler: clang
81+
# version: "14"
82+
# flag: no_boost
8383

84-
- name: ubuntu-no-unstable
85-
os: ubuntu-22.04
86-
compiler: clang
87-
version: "14"
88-
flag: no_unstable
84+
# - name: ubuntu-no-unstable
85+
# os: ubuntu-22.04
86+
# compiler: clang
87+
# version: "14"
88+
# flag: no_unstable
8989

90-
- name: ubuntu-build-examples
91-
os: ubuntu-22.04
92-
compiler: clang
93-
version: "14"
94-
flag: build_examples
90+
# - name: ubuntu-build-examples
91+
# os: ubuntu-22.04
92+
# compiler: clang
93+
# version: "14"
94+
# flag: build_examples
9595

9696
steps:
9797
- name: Checkout
@@ -181,8 +181,8 @@ jobs:
181181
sudo apt-get install libeigen3-dev
182182
echo "GTSAM_USE_SYSTEM_EIGEN=ON" >> $GITHUB_ENV
183183
# TODO(dellaert): This does not work yet?
184-
# sudo apt-get install metis
185-
# echo "GTSAM_USE_SYSTEM_METIS=ON" >> $GITHUB_ENV
184+
sudo apt-get install metis
185+
echo "GTSAM_USE_SYSTEM_METIS=ON" >> $GITHUB_ENV
186186
187187
- name: Turn off boost
188188
if: matrix.flag == 'no_boost'

cmake/HandleMetis.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
# For both system or bundle version, a cmake target "metis-gtsam-if" is defined (interface library)
55

66
# Dont try to use metis if GTSAM_SUPPORT_NESTED_DISSECTION is disabled:
7+
message(STATUS "GTSAM_SUPPORT_NESTED_DISSECTION: ${GTSAM_SUPPORT_NESTED_DISSECTION}")
78
if (NOT GTSAM_SUPPORT_NESTED_DISSECTION)
89
return()
910
endif()
1011

1112
option(GTSAM_USE_SYSTEM_METIS "Find and use system-installed libmetis. If 'off', use the one bundled with GTSAM" OFF)
1213

14+
message(STATUS "GTSAM_USE_SYSTEM_METIS: ${GTSAM_USE_SYSTEM_METIS}")
1315
if(GTSAM_USE_SYSTEM_METIS)
1416
# Debian package: libmetis-dev
1517
include(CMakeFindDependencyMacro)
1618
find_dependency(GKlib CONFIG)
1719
find_path(METIS_INCLUDE_DIR metis.h REQUIRED)
1820
find_library(METIS_LIBRARY metis REQUIRED)
21+
message(STATUS "METIS_INCLUDE_DIR: ${METIS_INCLUDE_DIR}")
1922

2023
if(METIS_INCLUDE_DIR AND METIS_LIBRARY)
2124
mark_as_advanced(METIS_INCLUDE_DIR)

0 commit comments

Comments
 (0)