-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github/workflow: remove rpm, add ubuntu-20.04 job
The rpm job was removed because the rpm generated by Ubuntu was not compatible with Fedora (and others), e.g. the compiled iio-osc was linked to libcurl.so.4(CURL_OPENSSL_4), which in Fedora does not include this flavour. The method of getting the package version from dkpg was removed, instead, we can check the *_VERSION variable and handle special cases, as in the case of matio between Ubuntu 20.04 and 22.04. Signed-off-by: Jorge Marques <[email protected]>
- Loading branch information
Showing
3 changed files
with
87 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
on: | ||
push: | ||
branches: [master, deb] | ||
name: deb build for Ubuntu 20.04 | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && | ||
sudo apt-get install -y | ||
build-essential cmake git | ||
libgtk-3-dev libcurl4-gnutls-dev | ||
libaio-dev | ||
libjansson-dev libmatio-dev libfftw3-dev | ||
|
||
- name: Install libiio | ||
run: | | ||
wget https://github.com/analogdevicesinc/libiio/releases/download/v0.24/libiio-0.24.gc4498c2-Linux-Ubuntu-20.04.deb | ||
echo "ab84e5374cfab7f46d5006f80d0ac1fed6b104fe2dd2f804b4dd273dadf0ae65 libiio-0.24.gc4498c2-Linux-Ubuntu-20.04.deb" | sha256sum --check | ||
sudo apt install -y ./libiio-0.24.gc4498c2-Linux-Ubuntu-20.04.deb | ||
- name: Build gtkdatabox | ||
run: | | ||
wget https://download.sourceforge.net/project/gtkdatabox/gtkdatabox-1/gtkdatabox-1.0.0.tar.gz | ||
echo "8bee70206494a422ecfec9a88d32d914c50bb7a0c0e8fedc4512f5154aa9d3e3 gtkdatabox-1.0.0.tar.gz" | sha256sum --check | ||
tar -xvf gtkdatabox-1.0.0.tar.gz | ||
cd gtkdatabox-1.0.0 | ||
./configure | ||
make | ||
sudo make install | ||
- 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 package | ||
run: mkdir build && cd $_ && | ||
cmake -DENABLE_PACKAGING=ON .. && make package | ||
|
||
- name: Upload deb package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: iio-oscilloscope-Ubuntu20.04.deb | ||
path: build/iio-oscilloscope-*-Linux.deb | ||
if-no-files-found: error |
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