forked from ArduCAM/libcamera
-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (68 loc) · 2.85 KB
/
rpi.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
name: Build RPI
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: pguyot/arm-runner-action@98b8d5a3228f504a8bd54913ab1e23d70f369c6e
id: build_image
with:
base_image: raspios_lite:2023-05-03
image_additional_mb: 4000
bind_mount_repository: true
import_github_env: true
commands: |
ls -a
sudo apt update
sudo apt install -y libboost-dev git python3-pip ruby-dev libgnutls28-dev openssl libtiff5-dev qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5 meson libegl1-mesa-dev cmake libboost-program-options-dev libdrm-dev libexif-dev libegl1-mesa-dev
sudo pip3 install pyyaml ply jinja2
sudo pip3 install --upgrade meson
gem install fpm
sudo apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev python3-pybind11
curl -s --compressed "https://arducam.github.io/arducam_ppa/KEY.gpg" | sudo apt-key add -
sudo curl -s --compressed -o /etc/apt/sources.list.d/arducam_list_files.list "https://arducam.github.io/arducam_ppa/arducam_list_files.list"
sudo apt update
sudo apt install arducam-pivariety-sdk-dev
mkdir -p /opt/libcamera-openhd
meson build --buildtype=release -Dpipelines=rpi/vc4 -Dipas=rpi/vc4 -Dv4l2=true -Dgstreamer=enabled -Dtest=false -Dlc-compliance=disabled -Dcam=disabled -Dqcam=enabled -Ddocumentation=disabled -Dpycamera=enabled -Dlibexecdir=/usr/lib/arm-linux-gnueabihf --prefix=/usr
DESTDIR=/opt/libcamera-openhd/ ninja -C build install
cp -r tuning/* /opt/libcamera-openhd/usr/share/libcamera/ipa/rpi/vc4/
fpm -a armhf -s dir -t deb -n libcamera-openhd -v 0.2.6 -C /opt/libcamera-openhd -p libcamera-openhd_VERSION_ARCH.deb --conflicts "libcamera-dev" --conflicts "libcamera0"
- name: Upload to Github
uses: 'actions/upload-artifact@v2'
with:
name: "libcamera"
path: |
/*.deb
*deb
*.log
- name: Push
id: push
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "deb"
owner: "openhd"
repo: "openhd-2-3-evo"
distro: "raspbian"
release: "bullseye"
republish: "true" # needed ONLY if version is not changing
file: "*deb"
#- name: Install
# run: |
# cd OpenHD/build
# sudo cmake --install .
#- name: Build ninja
# run: |
# sudo apt -y install ninja-build
# cd OpenHD
# ./build_cmake.sh