Skip to content

Commit a401556

Browse files
committed
github/workflow: add deb and rpm jobs
CI to generate the deb and rpms. Fixup contact link. Signed-off-by: Jorge Marques <[email protected]>
1 parent 953066e commit a401556

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/build-deb-rpm.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
on:
2+
push:
3+
branches: [master, deb]
4+
name: deb and rpm build
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Install dependencies
14+
run: sudo apt-get update &&
15+
sudo apt-get install -y
16+
build-essential cmake
17+
rpm git
18+
libgtkdatabox-dev libaio-dev libiio-dev
19+
libjansson-dev libmatio-dev libfftw3-dev
20+
21+
- name: Build libad9166-iio
22+
run: |
23+
git -c http.sslVerify=false clone https://github.com/analogdevicesinc/libad9166-iio
24+
mkdir libad9166-iio/build && cd $_
25+
cmake ..
26+
make && sudo make install
27+
28+
- name: Build libad9361-iio
29+
run: |
30+
git -c http.sslVerify=false clone -b v0.2 https://github.com/analogdevicesinc/libad9361-iio
31+
mkdir libad9361-iio/build && cd $_
32+
cmake ..
33+
make && sudo make install
34+
35+
- name: Generate deb and rpm package
36+
run: mkdir build && cd $_ &&
37+
cmake -DENABLE_PACKAGING=ON .. && make package
38+
39+
- name: Grab deb and rpm package
40+
uses: actions/upload-artifact@v3
41+
with:
42+
path: |
43+
build/packages/iio-oscilloscope-*-Linux.rpm
44+
build/packages/iio-oscilloscope-*-Linux.deb
45+
if-no-files-found: error

cmake/LinuxPackaging.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ set(CPACK_PACKAGE_VERSION_PATCH ${OSC_VERSION_GIT})
1616
set(CPACK_BUNDLE_NAME osc)
1717
set(CPACK_PACKAGE_VERSION ${OSCIO_VERSION})
1818
# debian specific package settings
19-
set(CPACK_PACKAGE_CONTACT "Engineerzone <https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope>")
19+
set(CPACK_PACKAGE_CONTACT "Engineerzone <https://ez.analog.com/sw-interface-tools>")
2020

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

0 commit comments

Comments
 (0)