Skip to content

Commit

Permalink
Merge pull request #343 from oddkiva/maint-update-github-master-branch
Browse files Browse the repository at this point in the history
MAINT: update the GitHub master branch
  • Loading branch information
oddkiva authored Sep 28, 2023
2 parents 36aed78 + 38aba1f commit c7b2cbe
Show file tree
Hide file tree
Showing 1,973 changed files with 330,892 additions and 69,996 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sara Build + Test
name: Continuous Integration

on:
push:
Expand Down Expand Up @@ -43,6 +43,21 @@ on:
# }
#
# steps:
# - name: Prepare ccache timestamp
# id: ccache_cache_timestamp
# shell: cmake -P {0}
# run: |
# string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
# message("::set-output name=timestamp::${current_date}")
#
# - name: Save ccache cache files
# uses: actions/[email protected]
# with:
# path: .ccache
# key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } }
# restore-keys: |
# ${ { matrix.config.name } }-ccache-
#
# - uses: actions/checkout@v4
#
# - name: Install dependencies on Ubuntu
Expand Down Expand Up @@ -171,17 +186,4 @@ jobs:
- name: Build and test on Ubuntu
if: startsWith(matrix.container, 'oddkiva/sara-devel')
run: |
mkdir build
cd build
cmake .. \
-G Ninja \
-D CMAKE_BUILD_TYPE:STRING=Release \
-D SARA_BUILD_SHARED_LIBS:BOOL=ON \
-D SARA_BUILD_VIDEOIO:BOOL=ON \
-D SARA_BUILD_SAMPLES:BOOL=ON \
-D SARA_BUILD_TESTS:BOOL=ON
cmake --build . -j$(nproc)
DISPLAY=:1 ctest \
-j$(nproc) \
--output-on-failure \
--exclude-regex "test_core_ipc_cond1|test_graphics_*|test_visualization_feature_draw|shakti_test_*"
./build.py --tasks library --build_type Release --from_scratch --ci
210 changes: 27 additions & 183 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,199 +1,43 @@
#################
# Temporarily generated library folders
#################
bin/
build/
build-static/
build-shared/
# Data
**/assets/
**/yolov*/
doc/source/xml/
html/
latex/
lib/
sara_version.cmake

#################
## Eclipse
#################
# Model weights.
*.weights
*.onnx
# TensorRT optimized model.
*.bin

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
!pumpkin_tall_10k.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover

## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp

# ReSharper is a .NET coding add-in
_ReSharper*

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML



############
## Windows
############

# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini


#############
## Python
#############
# QtCreator
CMakeLists.txt.user

# Python
*.pyc
*.pyo
*.coverage

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
# Rmarkdown
.RData
.Rhistory
sara_book.log
_book/
_bookdown_files/

# Installer logs
pip-log.txt
# cache folder
.cache

# Unit test / coverage reports
.coverage
.tox
# NPM
**/node_modules/

#Translations
*.mo
# CMake
cmake/sara_version.cmake
compile_commands.json

#Mr Developer
.mr.developer.cfg
# GDB
.gdb_history

# Mac crap
.DS_Store

#############
## Project-specific files
#############
compile_commands.json
.gdb_history

third-party/zlib/zconf.h
third-party/libjpeg/jconfig.h
third-party/libpng/pnglibconf.h
third-party/libtiff/tif_config.h

test/Core/tree.gv
test/FeatureDetectors/test.haraffkey
test/ImageProcessing/bench*.txt
test/Features/test_copy.*

test/Graphics/MARBIBM_write.TIF
test/Graphics/flower_write.png
test/Graphics/ksmall_write.jpg
.Rproj.user
43 changes: 14 additions & 29 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: nvidia/cudagl:10.1-runtime-ubuntu18.04
image: ubuntu:22.04

cache:
paths:
Expand All @@ -22,8 +22,7 @@ before_script:

# Do this first.
- apt-get update -y -qq

# Install the latest CMake please.
# Install the prerequisite software to add APT packages.
- apt-get install -y -qq
apt-transport-https
ca-certificates
Expand All @@ -34,13 +33,13 @@ before_script:
# Now add the additional APT repositories:
#
# CMake.
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
# CLBlast.
- add-apt-repository ppa:cnugteren/clblast
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
- echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy-rc main' | tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
# Vulkan SDK.
- wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add -
- wget -qO /etc/apt/sources.list.d/lunarg-vulkan-bionic.list http://packages.lunarg.com/vulkan/lunarg-vulkan-bionic.list
- wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | tee /etc/apt/trusted.gpg.d/lunarg.asc
- wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
# Intel TBB
# - echo "deb http://cz.archive.ubuntu.com/ubuntu eoan main universe" | tee -a /etc/apt/sources.list
# Update the packages list again.
- apt-get update -y -qq

Expand All @@ -59,9 +58,11 @@ before_script:
lcov
libboost-all-dev
libhdf5-dev
libheif-dev
libjpeg-dev
libpng-dev
libtiff5-dev
libwebp-dev
libavcodec-dev
libavformat-dev
libavutil-dev
Expand All @@ -72,27 +73,11 @@ before_script:
ocl-icd-opencl-dev
opencl-headers
libpocl-dev
libtbb-dev
libceres-dev
qtbase5-dev
vulkan-sdk

# Install the GStreamer SDK.
- apt-get install -y -qq
libgstreamer1.0-0
gstreamer1.0-plugins-base
gstreamer1.0-plugins-good
gstreamer1.0-plugins-bad
gstreamer1.0-plugins-ugly
gstreamer1.0-libav
gstreamer1.0-doc
gstreamer1.0-tools
gstreamer1.0-x
gstreamer1.0-alsa
gstreamer1.0-gl
gstreamer1.0-gtk3
gstreamer1.0-qt5
gstreamer1.0-pulseaudio

# Python dependencies (TODO).
- apt-get install -y -qq python3-dev

Expand Down Expand Up @@ -123,9 +108,9 @@ build:
-DSARA_BUILD_VIDEOIO:BOOL=ON
-DSARA_BUILD_SAMPLES:BOOL=ON
-DSARA_BUILD_TESTS:BOOL=ON
- make -j$(nproc)
- make -j$(nproc) VERBOSE=1
# Create deb package.
- make package
# - make package # Lack of space in the build machine ?
# Run tests.
- DISPLAY=:1 ctest
-j$(nproc)
Expand Down Expand Up @@ -153,5 +138,5 @@ pages:
staging:
stage: deploy
trigger:
project: DO-CV/sara-book
project: oddkiva/sara-book
branch: master
Loading

0 comments on commit c7b2cbe

Please sign in to comment.