Skip to content

Commit

Permalink
github/workflow: add deb and rpm jobs
Browse files Browse the repository at this point in the history
CI to generate the deb and rpms.
Fixup contact link.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Mar 22, 2023
1 parent 953066e commit 2ed30f7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/build-deb-rpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
branches: [master, deb]
name: deb and rpm build
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get update &&
sudo apt-get install -y
build-essential cmake
rpm git
libgtkdatabox-dev libaio-dev libiio-dev
libjansson-dev libmatio-dev libfftw3-dev

- name: Build libad9166-iio
run: |
git -c http.sslVerify=false clone https://github.com/analogdevicesinc/libad9166-iio
mkdir libad9166-iio/build && cd $_
cmake ..
make && sudo make install
- name: Build libad9361-iio
run: |
git -c http.sslVerify=false clone -b v0.2 https://github.com/analogdevicesinc/libad9361-iio
mkdir libad9361-iio/build && cd $_
cmake ..
make && sudo make install
- name: Generate deb and rpm package
run: mkdir build && cd $_ &&
cmake -DENABLE_PACKAGING=ON .. && make package

- name: Grab deb and rpm package
uses: actions/upload-artifact@v3
with:
path: |
build/iio-oscilloscope-*-Linux.rpm
build/iio-oscilloscope-*-Linux.deb
if-no-files-found: error
2 changes: 1 addition & 1 deletion cmake/LinuxPackaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(CPACK_PACKAGE_VERSION_PATCH ${OSC_VERSION_GIT})
set(CPACK_BUNDLE_NAME osc)
set(CPACK_PACKAGE_VERSION ${OSCIO_VERSION})
# debian specific package settings
set(CPACK_PACKAGE_CONTACT "Engineerzone <https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope>")
set(CPACK_PACKAGE_CONTACT "Engineerzone <https://ez.analog.com/sw-interface-tools>")

option(DEB_DETECT_DEPENDENCIES "Detect dependencies for .deb packages" OFF)

Expand Down

0 comments on commit 2ed30f7

Please sign in to comment.