Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing ubuntu_dep_src CI #1434

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions .github/workflows/ubuntu-dep-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

env:
# Function to get the most recent tag of a remote repository without having to clone it, excluding tag with 'pr' as in Pre Release
FUNCTION_GET_LATEST: 'git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${GIT_ADDRESS} '*.*.*' | cut --delimiter='/' --fields=3 | grep -v -e pr | tail --lines=1'

jobs:
build-ubuntu-dep-src:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -59,7 +63,10 @@ jobs:
run: |
pwd
echo $GITHUB_WORKSPACE
git clone --depth 1 https://github.com/xianyi/OpenBLAS.git ${HOME}/OpenBLAS
GIT_ADDRESS=https://github.com/xianyi/OpenBLAS.git
echo ${FUNCTION_GET_LATEST}
LATEST_TAG=`eval ${FUNCTION_GET_LATEST}`
git clone --depth 1 --branch ${LATEST_TAG} ${GIT_ADDRESS} ${HOME}/OpenBLAS
cd ${HOME}/OpenBLAS
mkdir install
make -j$(nproc)
Expand All @@ -74,7 +81,9 @@ jobs:
pwd
echo "GIT_CLONE_PROTECTION_ACTIVE=false" >> $GITHUB_ENV
export GIT_CLONE_PROTECTION_ACTIVE=false
git clone --recursive --depth 1 --branch v9.3.0 https://github.com/Kitware/VTK.git ${HOME}/VTK
GIT_ADDRESS="https://github.com/Kitware/VTK.git"
LATEST_TAG=`eval ${FUNCTION_GET_LATEST}`
git clone --recursive --depth 1 --branch ${LATEST_TAG} ${GIT_ADDRESS} ${HOME}/VTK
cd ${HOME}/VTK
mkdir build && cd build && mkdir install
cmake .. -DVTK_ANDROID_BUILD=OFF -DVTK_BUILD_DOCUMENTATION=OFF -DVTK_BUILD_EXAMPLES=OFF -DVTK_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release \
Expand All @@ -86,7 +95,9 @@ jobs:
- name: Build OpenCV from source
run: |
pwd
git clone --depth 1 https://github.com/opencv/opencv.git ${HOME}/opencv
GIT_ADDRESS="https://github.com/opencv/opencv.git"
LATEST_TAG=`eval ${FUNCTION_GET_LATEST}`
git clone --depth 1 --branch ${LATEST_TAG} ${GIT_ADDRESS} ${HOME}/opencv
cd ${HOME}/opencv
mkdir build && cd build && mkdir install
cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/install
Expand All @@ -97,7 +108,9 @@ jobs:
- name: Build librealsense2 from source
run: |
pwd
git clone --depth 1 https://github.com/IntelRealSense/librealsense.git ${HOME}/librealsense
GIT_ADDRESS="https://github.com/IntelRealSense/librealsense.git"
LATEST_TAG=`eval ${FUNCTION_GET_LATEST}`
git clone --depth 1 --branch ${LATEST_TAG} ${GIT_ADDRESS} ${HOME}/librealsense
cd ${HOME}/librealsense
mkdir build && cd build && mkdir install
cmake .. -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/install
Expand All @@ -108,7 +121,9 @@ jobs:
- name: Build PCL from source
run: |
pwd
git clone --depth 1 https://github.com/PointCloudLibrary/pcl.git ${HOME}/pcl
GIT_ADDRESS="https://github.com/PointCloudLibrary/pcl.git"
LATEST_TAG=`eval ${FUNCTION_GET_LATEST}`
git clone --depth 1 --branch ${LATEST_TAG} ${GIT_ADDRESS} ${HOME}/pcl
cd ${HOME}/pcl
mkdir build && cd build && mkdir install
cmake .. -DBUILD_tools=OFF -DBUILD_global_tests=OFF -DPCL_DISABLE_GPU_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/install
Expand Down
Loading