Skip to content

Commit

Permalink
ci/linux: fix artifacts
Browse files Browse the repository at this point in the history
- export both .dpkg needed to install libiio and libm2k with the latest compatible API's
- create wheels during azure-pipelines build

Signed-off-by: Adrian Stanea <[email protected]>
  • Loading branch information
Adrian-Stanea committed Nov 21, 2023
1 parent 170b313 commit 1c0b72f
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 170 deletions.
37 changes: 25 additions & 12 deletions CI/ubuntu/install_deps
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

#!/bin/sh -e

TOP_DIR=$(pwd)
LIBIIO_VERSION=libiio-v0

set -x

handle_default() {
install_deps() {
echo "# INSTALLING DEPENDENCIES"

sudo apt-get -qq update
echo "libm2k packages"
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y cmake doxygen graphviz \
Expand All @@ -15,32 +18,46 @@ handle_default() {
debhelper devscripts fakeroot libserialport-dev swig dh-python

# libiio dependencies
echo "libiio packages"
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
libxml2-dev bison flex libcdk5-dev cmake \
libaio-dev libusb-1.0-0-dev \
libserialport-dev libavahi-client-dev man2html

libserialport-dev libavahi-client-dev man2html \
python3-sphinx
}

install_glog() {
echo "## Building glog"

#Install glog
cd ${TOP_DIR}
git clone --branch v0.4.0 --depth 1 https://github.com/google/glog
mkdir -p glog/build_0_4_0 && cd glog/build_0_4_0
cmake -DCMAKE_PREFIX_PATH=/usr ..
make
sudo make install
sudo pip3 install --upgrade pip stdeb argparse
}

# Install libiio
echo "Building libiio - version $LIBIIO_VERSION"
install_libiio() {
echo "## Building libiio - version $LIBIIO_VERSION"

cd ${TOP_DIR}
git clone https://github.com/analogdevicesinc/libiio.git -b $LIBIIO_VERSION libiio
mkdir ./libiio/build && cd ./libiio/build
cmake ../ -DCOMPILE_WARNING_AS_ERROR=ON -DENABLE_PACKAGING=ON -DPYTHON_BINDINGS=OFF -DWITH_DOC=ON -DWITH_MAN=ON -DWITH_USB_BACKEND=OFF -DWITH_IIOD_USBD=OFF -DWITH_LOCAL_MMAP_API=OFF
cmake .. -Werror=dev -DCOMPILE_WARNING_AS_ERROR=ON -DENABLE_PACKAGING=ON -DPYTHON_BINDINGS=ON -DWITH_DOC=ON -DWITH_SERIAL_BACKEND=ON -DWITH_MAN=ON -DCPACK_SYSTEM_NAME=${ARTIFACTNAME}
make
make package
sudo apt install ./libiio-*.deb
# sudo make install
}

handle_default() {
install_deps
install_glog
install_libiio
}

handle_ubuntu_docker() {
handle_default
}

handle_doxygen() {
Expand Down Expand Up @@ -71,8 +88,4 @@ handle_doxygen() {
sudo pip3 install --upgrade sphinx_rtd_theme
}

handle_ubuntu_docker() {
handle_default
}

handle_${OS_TYPE}
Loading

0 comments on commit 1c0b72f

Please sign in to comment.