forked from intel/ipu6-camera-hal
104 lines (93 loc) · 3.79 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Build tests
on:
push:
branches:
- main
pull_request:
jobs:
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:
- uses: actions/checkout@v2
- name: Build for ipu6ep
run: |
sudo apt-get update -q -q
sudo apt-get install git cmake libexpat-dev automake libtool libgstreamer1.0-dev libgstreamer-plugins-base1.0-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-2004:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build for ipu6
run: |
sudo apt-get update -q -q
sudo apt-get install git cmake libexpat-dev automake libtool libgstreamer1.0-dev libgstreamer-plugins-base1.0-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