-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from basler/feature/debian_packaging
Feature/debian packaging
- Loading branch information
Showing
23 changed files
with
458 additions
and
31 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
name: Build Debian Packages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: jfrog/setup-jfrog-cli@v4 | ||
env: | ||
JF_URL: ${{ secrets.SDK_URL }} | ||
JF_ACCESS_TOKEN: ${{ secrets.SDK_TOKEN }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# login | ||
- run: | | ||
jf c add --url=$JF_URL --access-token=$JF_ACCESS_TOKEN --interactive=false | ||
# download· | ||
- name: Download files from Artifactory | ||
id: get_matrix | ||
run: | | ||
set +x | ||
set -e | ||
build_config=$(cat .github/workflows/build_config.json) | ||
for os in $(echo $build_config | jq -r 'keys[]'); do | ||
for pylon_sdk in $(echo $build_config | jq -r --arg os "$os" '.[$os].pylon_sdk_packaging'); do | ||
if [[ $os == "linux-x86_64" ]]; then | ||
jf rt dl --flat --props "pylon_architecture=x86_64;pylon_os=linux;pylon_version=$pylon_sdk;pylon_packaging=deb" "pylon-sdks-generic/*" ./linux_x86_64_sdk/ | ||
elif [[ $os == "linux-aarch64" ]]; then | ||
jf rt dl --flat --props "pylon_architecture=aarch64;pylon_os=linux;pylon_version=$pylon_sdk;pylon_packaging=deb" "pylon-sdks-generic/*" ./linux_aarch64_sdk/ | ||
fi | ||
done | ||
done | ||
- name: Upload Pylon SDK for Linux aarch64 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux_aarch64_packaging_Pylon | ||
path: linux_aarch64_sdk | ||
|
||
- name: Upload Pylon SDK for Linux x86_64 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux_x86_64_packaging_Pylon | ||
path: linux_x86_64_sdk | ||
|
||
build_deb: | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu:24.04 | ||
- ubuntu:22.04 | ||
- ubuntu:20.04 | ||
- debian:bookworm | ||
- debian:bullseye | ||
arch: ["arm64", "amd64"] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download x86_64 | ||
if: matrix.arch == 'amd64' | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Linux_x86_64_packaging_Pylon | ||
path: pylon-installer | ||
|
||
- name: Download aarch64 | ||
if: matrix.arch == 'arm64' | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Linux_aarch64_packaging_Pylon | ||
path: pylon-installer | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: linux/amd64, linux/arm64 | ||
|
||
- name: Set sanitized OS name | ||
id: sanitize_os | ||
run: | | ||
SANITIZED_OS=$(echo ${{ matrix.os }} | sed 's/:/./g') | ||
echo "SANITIZED_OS=$SANITIZED_OS" >> $GITHUB_ENV | ||
- name: Build Debian Package | ||
uses: jtdor/build-deb-action@v1 | ||
env: | ||
DEB_BUILD_OPTIONS: noautodbgsym | ||
with: | ||
setup-hook: | | ||
ln -sfn packaging/debian | ||
apt-get update | ||
(cd /pylon-installer && tar -xvf *.tar.gz && apt-get install -y ./*.deb) | ||
# patch version to contain platform info | ||
tools/patch_deb_changelog.sh | ||
docker-image: ${{ matrix.arch == 'arm64' && format('arm64v8/{0}', matrix.os) || format('{0}', matrix.os) }} | ||
extra-docker-args: -v ${{ github.workspace }}/pylon-installer:/pylon-installer -e PYLON_ROOT=/opt/pylon | ||
buildpackage-opts: --build=binary --no-sign | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: debian-packages-${{ env.SANITIZED_OS }}-${{ matrix.arch }} | ||
path: debian/artifacts/ | ||
|
||
|
||
|
||
cleanup: | ||
if: always() | ||
needs: [ | ||
setup, | ||
build_deb | ||
] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: geekyeggo/delete-artifact@v5 | ||
continue-on-error: true | ||
with: | ||
name: | | ||
Linux_x86_64_packaging_Pylon | ||
Linux_aarch64_packaging_Pylon | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ __pycache__ | |
|
||
# subprojects | ||
subprojects/packagecache | ||
subprojects/pybind11-2.10.3 | ||
subprojects/pybind11-* |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
gst-plugin-pylon (0.7.2) unstable; urgency=medium | ||
|
||
* Refer to Package Release Notes for details: https://github.com/basler/gst-plugin-pylon/blob/main/CHANGELOG.md | ||
|
||
-- Basler AG <[email protected]> Tue, 09 Jul 2024 12:00:00 +0000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Source: gst-plugin-pylon | ||
Section: video | ||
Priority: optional | ||
Maintainer: Basler AG <[email protected]> | ||
Build-Depends: debhelper-compat (= 11), | ||
dh-python, cmake, | ||
python3-pip, | ||
python3-setuptools, | ||
pybind11-dev, | ||
python3-dev, | ||
libgstreamer1.0-dev, | ||
libgstreamer-plugins-base1.0-dev, | ||
pylon (= 7.5.0.15658-deb0), | ||
deepstream-6.3 <nvidia> | deepstream-6.4 <nvidia> | deepstream-7.0 <nvidia> | ||
Standards-Version: 4.5.0 | ||
Homepage: https://github.com/basler/gst-plugin-pylon | ||
|
||
Package: gst-plugin-pylon | ||
Architecture: any | ||
Depends: libc6, pylon (= 7.5.0.15658-deb0), ${misc:Depends}, gstreamer1.0-plugins-base, deepstream-6.3 <nvidia> | deepstream-6.4 <nvidia> | deepstream-7.0 <nvidia> | ||
Description: GStreamer plugin for Basler cameras | ||
This plugin allows the use of any Basler 2D camera (supported by Basler pylon | ||
Camera Software Suite) as a source element in a GStreamer pipeline. | ||
|
||
Package: gst-plugin-pylon-dev | ||
Architecture: any | ||
Depends: pylon (= 7.5.0.15658-deb0), ${misc:Depends}, gst-plugin-pylon | ||
Description: Development files for GStreamer plugin for Basler cameras | ||
This package contains the development files for the GStreamer plugin for | ||
Basler cameras. | ||
|
||
Package: python3-pygstpylon | ||
Architecture: any | ||
Depends: libc6, python3, pylon (= 7.5.0.15658-deb0), ${misc:Depends}, gst-plugin-pylon, deepstream-6.3 <nvidia> | deepstream-6.4 <nvidia> | deepstream-7.0 <nvidia> | ||
Description: Python module to access pylon specific gstreamer metadata. | ||
The python module pygstpylon allows to extract pylon specific metadata | ||
from a buffer. |
Oops, something went wrong.