Skip to content

Commit

Permalink
Merge pull request #115 from basler/feature/publish_deb_packages
Browse files Browse the repository at this point in the history
Feature/publish deb packages
  • Loading branch information
thiesmoeller authored Jul 30, 2024
2 parents ee8922d + 0d6e6ce commit ef9cb01
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/deb.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Build Debian Packages
on:
push:
branches:
- main
pull_request:
branches:
- main
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
setup:
runs-on: ubuntu-latest
outputs:
is_release_build: ${{ env.RELEASE_BUILD == '1' }}
steps:
- uses: jfrog/setup-jfrog-cli@v4
env:
Expand Down Expand Up @@ -52,6 +54,12 @@ jobs:
name: Linux_x86_64_packaging_Pylon
path: linux_x86_64_sdk

- name: Check for release build
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "Build release for $GITHUB_REF"
echo "RELEASE_BUILD=1" >> $GITHUB_ENV
build_deb:
runs-on: ubuntu-latest
needs: setup
Expand Down Expand Up @@ -115,6 +123,13 @@ jobs:
name: debian-packages-${{ env.SANITIZED_OS }}-${{ matrix.arch }}
path: debian/artifacts/

- name: Upload Release Asset
if: needs.setup.outputs.is_release_build == 'true'
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./debian/artifacts/*.deb


cleanup:
Expand All @@ -131,4 +146,4 @@ jobs:
name: |
Linux_x86_64_packaging_Pylon
Linux_aarch64_packaging_Pylon
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.7.3] - 2024-07-30
### Added
- publish artifacts on release page

### Fixed
- build debian package in case meson/ninja already installed

## [0.7.2] - 2024-07-12
### Changed
- add debian packaging
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('gst-plugin-pylon', 'c', 'cpp',
version : '0.7.2',
version : '0.7.3',
meson_version : '>= 0.61',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gst-plugin-pylon (0.7.2) unstable; urgency=medium
gst-plugin-pylon (0.7.3) unstable; urgency=medium

* Refer to Package Release Notes for details: https://github.com/basler/gst-plugin-pylon/blob/main/CHANGELOG.md

Expand Down
2 changes: 1 addition & 1 deletion packaging/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ NINJA_BIN := $(VENV_DIR)/bin/ninja
# Ensure the virtual environment is set up and Meson/Ninja are installed
$(MESON_BIN) $(NINJA_BIN):
python3 -m venv $(VENV_DIR) --without-pip --system-site-packages
$(VENV_DIR)/bin/python -m pip install meson ninja
$(VENV_DIR)/bin/python -m pip install meson ninja -I

%: $(MESON_BIN) $(NINJA_BIN)
dh $@ --with python3 --buildsystem=meson
Expand Down

0 comments on commit ef9cb01

Please sign in to comment.