forked from intel/ipu6-camera-hal
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (75 loc) · 2.48 KB
/
build-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build tests
on:
push:
pull_request:
permissions: {}
jobs:
build:
strategy:
matrix:
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: main
path: bins
- name: Install from intel/ipu6-camera-bins
run: |
cd "${GITHUB_WORKSPACE}/bins"
cat README.md | \
awk 'BEGIN { \
FS="/"; \
} \
/^```/ { \
getline; \
if ($1 == "# Runtime files") { \
while ($1 != "```") { \
print $0; \
getline; \
} \
} \
}' | \
sed 's,ipu6-camera-bins/,./,' | \
sh -x
- uses: actions/checkout@v4
with:
path: hal
- name: Install prerequisite packages
run: |
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
export TZ=Asia/Shanghai
echo "" | apt-get install -qy tzdata
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: |
cd "${GITHUB_WORKSPACE}/hal"
mkdir build && cd build
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