Ubuntu-dep-src #12
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
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-16.04, ubuntu-18.04, ubuntu-20.04] | |
steps: | |
# https://github.com/marketplace/actions/cancel-workflow-action | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
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 | |
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 | |
sudo apt-get update && sudo apt-get install -y doxygen graphviz texlive-latex-base texlive-latex-extra | |
- 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 -j2 install | |
echo "VISP_DIR=$(pwd)/install" >> $GITHUB_ENV | |
echo $VISP_DIR | |
- name: Configure CMake and build camera_localization | |
run: | | |
mkdir build && cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release | |
make -j2 | |
make doc |