Skip to content

Commit

Permalink
CI cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lpanaf committed Jul 25, 2024
1 parent 4c502da commit b900d22
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,48 @@ jobs:
strategy:
matrix:
config: [

{
os: ubuntu-22.04,
cmakeBuildType: Release,
asanEnabled: false,
cudaEnabled: false,
checkCodeFormat: true,
cudaEnabled: true,
},
{
os: ubuntu-22.04,
cmakeBuildType: Release,
asanEnabled: false,
checkCodeFormat: false,
cudaEnabled: true,
checkCodeFormat: false,
},
{
os: ubuntu-22.04,
cmakeBuildType: Release,
asanEnabled: true,
cudaEnabled: false,
checkCodeFormat: false,
},
{
os: ubuntu-22.04,
cmakeBuildType: ClangTidy,
asanEnabled: false,
cudaEnabled: false,
checkCodeFormat: false,
},
{
os: ubuntu-20.04,
cmakeBuildType: Release,
asanEnabled: false,
cudaEnabled: false,
checkCodeFormat: false,
},
{
os: ubuntu-20.04,
cmakeBuildType: Release,
asanEnabled: false,
cudaEnabled: true,
checkCodeFormat: false,
},
]

Expand Down Expand Up @@ -162,10 +184,8 @@ jobs:
-DASAN_ENABLED=${{ matrix.config.asanEnabled }}
ninja -k 10000
- name: Run tests
run: |
if [ "${{ matrix.config.cmakeBuildType }}" == "ClangTidy" ]; then
exit 0
fi
if: matrix.config.cmakeBuildType != "ClangTidy"
run: |
export DISPLAY=":99.0"
export QT_QPA_PLATFORM="offscreen"
Xvfb :99 &
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ endif()
message(STATUS "Configuring COLMAP... done")

find_package(Eigen3 3.4 REQUIRED)
find_package(Ceres 2.0 REQUIRED COMPONENTS SuiteSparse)
find_package(Ceres REQUIRED COMPONENTS SuiteSparse)
find_package(Boost REQUIRED)

if(TESTS_ENABLED)
Expand Down
3 changes: 1 addition & 2 deletions glomap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ target_include_directories(
..
${SuiteSparse_CHOLMOD_INCLUDE_DIR}
)
message("!!!!!!!!!${SuiteSparse_CHOLMOD_LIBRARY}")
message("!!!!!!!!!${SuiteSparse_CHOLMOD_INCLUDE_DIR}")

if(OPENMP_FOUND)
target_link_libraries(glomap PUBLIC OpenMP::OpenMP_CXX)
endif()
Expand Down

0 comments on commit b900d22

Please sign in to comment.