Skip to content

Commit

Permalink
CI: Check the dfsg branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
fourdollars committed Aug 30, 2023
1 parent 113ca90 commit 52ffbe0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dfsg

pull_request:

Expand Down Expand Up @@ -37,15 +38,21 @@ jobs:
esac
echo 'APT::Get::Always-Include-Phased-Updates True;' | tee -a /etc/apt/apt.conf
echo 'Acquire::http::User-Agent-Non-Interactive "true";' | tee -a /etc/apt/apt.conf
apt-get update -q
apt-get update -q -q
export TZ=Asia/Shanghai
echo "" | apt-get install -qy tzdata
echo "" | apt-get install git build-essential cmake libexpat-dev automake libtool libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev --yes
git clone https://github.com/intel/ipu6-camera-bins -b main --depth 1
cp -rv ipu6-camera-bins/include/"${PLATFORM}" /usr/include/
cp -rv ipu6-camera-bins/lib/"${PLATFORM}" /usr/lib/
rm -fr /usr/lib/"${PLATFORM}"/pkgconfig
echo "Checkout ipu6-camera-bins ${{ github.ref_name }} ..."
git clone https://github.com/fourdollars/ipu6-camera-bins -b "${{ github.ref_name }}" --depth 1
cp -rv ipu6-camera-bins/lib/"${PLATFORM}"/pkgconfig/* /usr/lib/pkgconfig/
rm -fr ipu6-camera-bins/lib/"${PLATFORM}"/pkgconfig
if [ "${{ github.ref_name }}" = "dfsg" ]; then
cp -rv ipu6-camera-bins/include/"${PLATFORM}"/* /usr/include/
cp -rv ipu6-camera-bins/lib/"${PLATFORM}"/* /usr/lib/x86_64-linux-gnu/
else
cp -rv ipu6-camera-bins/include/"${PLATFORM}" /usr/include/
cp -rv ipu6-camera-bins/lib/"${PLATFORM}" /usr/lib/
fi
rm -fr ipu6-camera-bins
mkdir -p ./build/out/install/usr && cd ./build/
cmake -DCMAKE_BUILD_TYPE=Release \
Expand Down

0 comments on commit 52ffbe0

Please sign in to comment.