Sync dfsg with icamerasrc_slim_api branch #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ["ubuntu:24.04", "ubuntu:22.04", "ubuntu:20.04"] | |
runs-on: ubuntu-latest | |
container: ${{ matrix.os }} | |
steps: | |
- name: Install prerequisite packages | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
apt-get update --quiet | |
apt-get install --no-install-recommends --quiet --yes \ | |
automake \ | |
build-essential \ | |
cmake \ | |
libdrm-dev \ | |
libexpat-dev \ | |
libgstreamer1.0-dev \ | |
libgstreamer-plugins-base1.0-dev \ | |
libtool \ | |
pkg-config | |
- uses: actions/checkout@v3 | |
with: | |
repository: intel/ipu6-camera-bins | |
ref: dfsg | |
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@v3 | |
with: | |
repository: intel/ipu6-camera-hal | |
ref: dfsg | |
path: hal | |
- name: Install from intel/ipu6-camera-hal | |
run: | | |
cd "${GITHUB_WORKSPACE}/hal" | |
mkdir -p build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ../src/hal/hal_adaptor | |
make -j$(nproc) install | |
- uses: actions/checkout@v3 | |
with: | |
path: icamerasrc | |
- name: Install from intel/icamerasrc | |
env: | |
CHROME_SLIM_CAMHAL: ON | |
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}/icamerasrc" | |
CPPFLAGS="-D_FORTIFY_SOURCE=$fortify_level" ./autogen.sh && make -j$(nproc) install |