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

Sync dfsg with main branch #127

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 27 additions & 28 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
build:
strategy:
matrix:
version: [ipu6epmtl, ipu6ep, ipu6, hal]
version: [ipu6]
os: ["ubuntu:24.04", "ubuntu:22.04", "ubuntu:20.04"]
runs-on: ubuntu-latest
container: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
repository: intel/ipu6-camera-bins
ref: dfsg
ref: main
path: bins

- name: Install from intel/ipu6-camera-bins
Expand Down Expand Up @@ -53,36 +53,35 @@ jobs:
apt-get update -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
echo "" | apt-get install git build-essential cmake libexpat-dev automake libtool rpm libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev libdrm-dev libva-dev libunwind-dev libdrm-dev --yes
- uses: actions/checkout@v4
with:
repository: intel/icamerasrc
ref: icamerasrc_slim_api
path: icamerasrc

- name: Build test for ${{ matrix.version }} on ${{ matrix.os }}
timeout-minutes: 10
run: |
case "${{ matrix.os }}" in
("ubuntu:24.04")
fortify_level=3
;;
("ubuntu:22.04"|"ubuntu:20.04")
fortify_level=2
;;
(*)
echo "${{ matrix.os }} is unsupported yet. Please find the default fortify_level in /usr/share/perl5/Dpkg/Vendor/Ubuntu.pm or /usr/share/perl5/Dpkg/Vendor/Debian.pm."
exit 1
;;
esac
cd "${GITHUB_WORKSPACE}/hal"
mkdir build && cd build
if [ "${{ matrix.version }}" = "hal" ]; then
cmake -DCMAKE_BUILD_TYPE=Release \
"-DCMAKE_CXX_FLAGS=-D_FORTIFY_SOURCE=$fortify_level" \
../src/hal/hal_adaptor;
else
cmake -DCMAKE_BUILD_TYPE=Release \
"-DCMAKE_CXX_FLAGS=-D_FORTIFY_SOURCE=$fortify_level" \
-DIPU_VER="${{ matrix.version }}" \
-DUSE_PG_LITE_PIPE=ON \
-DUSE_HAL_ADAPTOR=ON \
..
fi
VERBOSE=1 make
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_CAMHAL_ADAPTOR=ON \
-DBUILD_CAMHAL_PLUGIN=ON \
-DIPU_VERSIONS="ipu6;ipu6ep;ipu6epmtl" \
-DUSE_PG_LITE_PIPE=ON \
..
VERBOSE=1 make -j16
make install
cd "${GITHUB_WORKSPACE}/icamerasrc"
export CHROME_SLIM_CAMHAL=ON
./autogen.sh
./configure --prefix=/usr
make -j16
make rpm
make install
Loading