-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat_opencv_modules
- Loading branch information
Showing
9 changed files
with
314 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: MacOS-dep-src | ||
|
||
# https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 2 * * SUN' | ||
|
||
jobs: | ||
build-macos-dep-sec: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-11, macos-12.0] | ||
|
||
steps: | ||
# https://github.com/marketplace/actions/cancel-workflow-action | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Print system information | ||
run: | | ||
sysctl -a | grep machdep.cpu | ||
sysctl -a | grep logical | ||
- name: Print OS information | ||
run: system_profiler SPSoftwareDataType | ||
|
||
- name: Install dependencies | ||
run: brew install libpng libjpeg libdc1394 opencv pcl librealsense zbar pkg-config nlohmann-json | ||
|
||
# Openblas location is exported explicitly because openblas is keg-only, | ||
# which means it was not symlinked into /usr/local/. | ||
# qt@5 is as a requested dependency for vtk and thus for pcl 1.13.0 | ||
# qt@5 is keg-only, which means it was not symlinked into /usr/local that's why we need to set Qt5_DIR | ||
- name: Clone and configure ViSP | ||
run: | | ||
git clone --depth 1 https://github.com/lagadic/visp.git ${HOME}/visp | ||
cd ${HOME}/visp | ||
export LDFLAGS="-L/usr/local/opt/openblas/lib" | ||
export CPPFLAGS="-I/usr/local/opt/openblas/include" | ||
export Qt5_DIR="$(brew --prefix qt5)/lib/cmake/Qt5" | ||
mkdir build && cd build | ||
cmake .. -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5 -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TUTORIALS=OFF -DCMAKE_INSTALL_PREFIX=$(pwd)/install | ||
cat ViSP-third-party.txt | ||
- name: Build and install ViSP | ||
run: | | ||
cd ${HOME}/visp/build | ||
make -j$(sysctl -n hw.logicalcpu) install | ||
echo "VISP_DIR=$(pwd)/install" >> $GITHUB_ENV | ||
echo $VISP_DIR | ||
- name: Configure CMake and build visp_sample | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release | ||
make -j$(sysctl -n hw.logicalcpu) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Ubuntu-dep-src | ||
|
||
# https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 2 * * SUN' | ||
|
||
jobs: | ||
build-ubuntu-dep-src: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, ubuntu-22.04] | ||
|
||
steps: | ||
# https://github.com/marketplace/actions/cancel-workflow-action | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.5.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Print system information | ||
run: lscpu | ||
|
||
- name: Print OS information | ||
run: lsb_release -a | ||
|
||
- name: Install dependencies for ubuntu 18.04 and 20.04 | ||
if: matrix.os != 'ubuntu-22.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev libxml2-dev libpcl-dev nlohmann-json3-dev | ||
sudo apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev | ||
- name: Install dependencies for ubuntu 22.04 | ||
if: matrix.os == 'ubuntu-22.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev libxml2-dev libpcl-dev nlohmann-json3-dev | ||
sudo apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev | ||
- name: Build librealsense2 from source | ||
run: | | ||
pwd | ||
git clone --depth 1 https://github.com/IntelRealSense/librealsense.git ${HOME}/librealsense | ||
cd ${HOME}/librealsense | ||
mkdir build && cd build && mkdir install | ||
cmake .. -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/install | ||
make -j$(nproc) install | ||
echo "REALSENSE2_DIR=$(pwd)/install" >> $GITHUB_ENV | ||
echo $REALSENSE2_DIR | ||
- name: Build ViSP from source | ||
run: | | ||
git clone --depth 1 https://github.com/lagadic/visp.git ${HOME}/visp | ||
cd ${HOME}/visp | ||
mkdir build && cd build && mkdir install | ||
cmake .. -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TUTORIALS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/install | ||
cat ViSP-third-party.txt | ||
make -j$(nproc) install | ||
echo "VISP_DIR=$(pwd)/install" >> $GITHUB_ENV | ||
echo $VISP_DIR | ||
- name: Configure CMake and build visp_sample | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release | ||
make -j$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Ubuntu-extra | ||
|
||
# https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 2 * * SUN' | ||
|
||
jobs: | ||
build-ubuntu-extra: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, ubuntu-22.04] | ||
|
||
steps: | ||
# https://github.com/marketplace/actions/cancel-workflow-action | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.5.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Print system information | ||
run: lscpu | ||
|
||
- name: Print OS information | ||
run: lsb_release -a | ||
|
||
- name: Install dependencies for ubuntu 18.04 and 20.04 | ||
if: matrix.os != 'ubuntu-22.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev gfortran liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev libxml2-dev libpcl-dev nlohmann-json3-dev | ||
sudo apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev | ||
- name: Install dependencies for ubuntu 22.04 | ||
if: matrix.os == 'ubuntu-22.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev gfortran liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev libxml2-dev libpcl-dev nlohmann-json3-dev | ||
sudo apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev | ||
- name: Build librealsense2 from source | ||
run: | | ||
pwd | ||
git clone --depth 1 https://github.com/IntelRealSense/librealsense.git ${HOME}/librealsense | ||
cd ${HOME}/librealsense | ||
mkdir build && cd build && mkdir install | ||
cmake .. -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/install | ||
make -j$(nproc) install | ||
echo "REALSENSE2_DIR=$(pwd)/install" >> $GITHUB_ENV | ||
echo $REALSENSE2_DIR | ||
- name: Build ViSP from source | ||
run: | | ||
git clone --depth 1 https://github.com/lagadic/visp.git ${HOME}/visp | ||
cd ${HOME}/visp | ||
mkdir build && cd build && mkdir install | ||
cmake .. -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TUTORIALS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/install | ||
cat ViSP-third-party.txt | ||
make -j$(nproc) install | ||
echo "ViSP_WS=${HOME}" >> $GITHUB_ENV | ||
echo $ViSP_WS | ||
- name: Build visp_sample with ViSP from build tree | ||
run: | | ||
mkdir visp_sample-build && cd visp_sample-build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DVISP_DIR=$ViSP_WS/visp/build | ||
make -j$(nproc) | ||
- name: Build visp_sample using visp-config from build tree | ||
run: | | ||
make -f Makefile.visp-config VISP_INSTALL_PREFIX=$ViSP_WS/visp/build | ||
make -j$(nproc) -f Makefile.visp-config clean | ||
- name: Build visp_sample with ViSP from install tree | ||
run: | | ||
mkdir visp_sample-build_2 && cd visp_sample-build_2 | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DVISP_DIR=$ViSP_WS/visp/build/install/lib/cmake/visp | ||
make -j$(nproc) | ||
- name: Build visp_sample using visp.pc from install tree | ||
run: | | ||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$ViSP_WS/visp/build/install/lib/pkgconfig | ||
make -j$(nproc) -f Makefile.visp.pc | ||
make -j$(nproc) -f Makefile.visp.pc clean | ||
- name: Build visp_sample using visp-config from install tree | ||
run: | | ||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$ViSP_WS/visp/build/install/lib/pkgconfig | ||
make -j$(nproc) -f Makefile.visp-config VISP_INSTALL_PREFIX=$ViSP_WS/visp/build/install | ||
make -j$(nproc) -f Makefile.visp-config clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.