From 1f8f370c96fb14b1261e869b2ee017ab9c2c630d Mon Sep 17 00:00:00 2001 From: "Shih-Yuan Lee (FourDollars)" Date: Tue, 12 Apr 2022 17:04:58 +0800 Subject: [PATCH] Add the build tests for Ubuntu 22.04. --- .github/workflows/build-tests.yml | 52 +++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index 7f1061a..dd4726a 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -8,7 +8,55 @@ on: pull_request: jobs: - build-ipu6ep: + build-ipu6ep-on-ubuntu-2204: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v2 + + - name: Build for ipu6ep + run: | + echo "APT::Get::Always-Include-Phased-Updates True;" | sudo tee -a /etc/apt/apt.conf + sudo apt-get update -q -q + sudo apt-get install git 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 + sudo cp -rv ipu6-camera-bins/ipu6ep/include/* /usr/include/ + sudo cp -rv ipu6-camera-bins/ipu6ep/lib/* /usr/lib/ + rm -fr ipu6-camera-bins + mkdir -p ./build/out/install/usr && cd ./build/ + cmake -DCMAKE_BUILD_TYPE=Release \ + -DIPU_VER=ipu6ep \ + -DENABLE_VIRTUAL_IPU_PIPE=OFF \ + -DUSE_PG_LITE_PIPE=ON \ + -DUSE_STATIC_GRAPH=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr .. + make + sudo make install + build-ipu6-on-ubuntu-2204: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v2 + + - name: Build for ipu6 + run: | + echo "APT::Get::Always-Include-Phased-Updates True;" | sudo tee -a /etc/apt/apt.conf + sudo apt-get update -q -q + sudo apt-get install git 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 + sudo cp -rv ipu6-camera-bins/ipu6/include/* /usr/include/ + sudo cp -rv ipu6-camera-bins/ipu6/lib/* /usr/lib/ + rm -fr ipu6-camera-bins + mkdir -p ./build/out/install/usr && cd ./build/ + cmake -DCMAKE_BUILD_TYPE=Release \ + -DIPU_VER=ipu6 \ + -DENABLE_VIRTUAL_IPU_PIPE=OFF \ + -DUSE_PG_LITE_PIPE=ON \ + -DUSE_STATIC_GRAPH=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr .. + make + sudo make install + build-ipu6ep-on-ubuntu-2004: runs-on: ubuntu-20.04 steps: @@ -31,7 +79,7 @@ jobs: -DCMAKE_INSTALL_PREFIX=/usr .. make sudo make install - build-ipu6: + build-ipu6-on-ubuntu-2004: runs-on: ubuntu-20.04 steps: