@@ -2,8 +2,6 @@ name: Build tests
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
7
5
8
6
pull_request :
9
7
@@ -13,48 +11,78 @@ jobs:
13
11
build :
14
12
strategy :
15
13
matrix :
16
- version : [ipu6epmtl, ipu6ep, ipu6]
14
+ version : [ipu6]
17
15
os : ["ubuntu:24.04", "ubuntu:22.04", "ubuntu:20.04"]
18
16
runs-on : ubuntu-latest
19
17
container : ${{ matrix.os }}
20
18
steps :
21
19
- uses : actions/checkout@v4
22
- - name : Build test for ${{ matrix.version }} on ${{ matrix.os }}
23
- timeout-minutes : 10
20
+ with :
21
+ repository : intel/ipu6-camera-bins
22
+ ref : main
23
+ path : bins
24
+
25
+ - name : Install from intel/ipu6-camera-bins
26
+ run : |
27
+ cd "${GITHUB_WORKSPACE}/bins"
28
+
29
+ cat README.md | \
30
+ awk 'BEGIN { \
31
+ FS="/"; \
32
+ } \
33
+ /^```/ { \
34
+ getline; \
35
+ if ($1 == "# Runtime files") { \
36
+ while ($1 != "```") { \
37
+ print $0; \
38
+ getline; \
39
+ } \
40
+ } \
41
+ }' | \
42
+ sed 's,ipu6-camera-bins/,./,' | \
43
+ sh -x
44
+
45
+ - uses : actions/checkout@v4
46
+ with :
47
+ path : hal
48
+
49
+ - name : Install prerequisite packages
24
50
run : |
25
- case "${{ matrix.version }}" in
26
- (ipu6)
27
- PLATFORM="ipu_tgl"
28
- ;;
29
- (ipu6ep)
30
- PLATFORM="ipu_adl"
31
- ;;
32
- (ipu6epmtl)
33
- PLATFORM="ipu_mtl"
34
- ;;
35
- (*)
36
- echo "Not support for ${IPU_VER} yet."
37
- exit 1
38
- ;;
39
- esac
40
51
echo 'APT::Get::Always-Include-Phased-Updates True;' | tee -a /etc/apt/apt.conf
41
52
echo 'Acquire::http::User-Agent-Non-Interactive "true";' | tee -a /etc/apt/apt.conf
42
53
apt-get update -q
43
54
export TZ=Asia/Shanghai
44
55
echo "" | apt-get install -qy tzdata
45
- echo "" | apt-get install git build-essential cmake libexpat-dev automake libtool libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev libdrm-dev --yes
46
- git clone https://github.com/intel/ipu6-camera-bins -b main --depth 1
47
- cp -rv ipu6-camera-bins/include/"${PLATFORM}" /usr/include/
48
- cp -rv ipu6-camera-bins/lib/"${PLATFORM}" /usr/lib/
49
- rm -fr /usr/lib/"${PLATFORM}"/pkgconfig
50
- cp -rv ipu6-camera-bins/lib/"${PLATFORM}"/pkgconfig/* /usr/lib/pkgconfig/
51
- rm -fr ipu6-camera-bins
52
- mkdir -p ./build/out/install/usr && cd ./build/
53
- cmake -DCMAKE_BUILD_TYPE=Release \
54
- -DIPU_VER="${{ matrix.version }}" \
55
- -DENABLE_VIRTUAL_IPU_PIPE=OFF \
56
- -DUSE_PG_LITE_PIPE=ON \
57
- -DUSE_STATIC_GRAPH=OFF \
58
- -DCMAKE_INSTALL_PREFIX=/usr ..
59
- make
56
+ 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
57
+
58
+ - uses : actions/checkout@v4
59
+ with :
60
+ repository : intel/icamerasrc
61
+ ref : icamerasrc_slim_api
62
+ path : icamerasrc
63
+
64
+ - name : Build test for ${{ matrix.version }} on ${{ matrix.os }}
65
+ timeout-minutes : 10
66
+ run : |
67
+ cd "${GITHUB_WORKSPACE}/hal"
68
+
69
+ mkdir build && cd build
70
+ cmake -DCMAKE_BUILD_TYPE=Release \
71
+ -DCMAKE_INSTALL_PREFIX=/usr \
72
+ -DCMAKE_INSTALL_LIBDIR=lib \
73
+ -DBUILD_CAMHAL_TESTS=OFF \
74
+ -DBUILD_CAMHAL_ADAPTOR=ON \
75
+ -DBUILD_CAMHAL_PLUGIN=ON \
76
+ -DIPU_VERSIONS="ipu6;ipu6ep;ipu6epmtl" \
77
+ -DUSE_PG_LITE_PIPE=ON \
78
+ ..
79
+ VERBOSE=1 make -j16
80
+ make install
81
+
82
+ cd "${GITHUB_WORKSPACE}/icamerasrc"
83
+ export CHROME_SLIM_CAMHAL=ON
84
+ ./autogen.sh
85
+ ./configure --prefix=/usr
86
+ make -j16
87
+ make rpm
60
88
make install
0 commit comments