From e8865b3b4a5a4823f89c02fe5bb75fc578f3ee67 Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Mon, 23 Sep 2024 07:52:35 -0600 Subject: [PATCH] Add libiio install to CI Signed-off-by: Travis F. Collins --- .github/scripts/install_libiio.sh | 16 ++++++++++++++++ .github/workflows/doc.yml | 10 ++++++++++ requirements_dev.txt | 1 + 3 files changed, 27 insertions(+) create mode 100644 .github/scripts/install_libiio.sh diff --git a/.github/scripts/install_libiio.sh b/.github/scripts/install_libiio.sh new file mode 100644 index 0000000..b861583 --- /dev/null +++ b/.github/scripts/install_libiio.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Set LIBIIO_BRANCH if not set +if [ -z "$LIBIIO_BRANCH" ]; then + LIBIIO_BRANCH="v0.25" +fi + +sudo apt-get -qq update +sudo apt-get install -y git cmake graphviz libavahi-common-dev libavahi-client-dev libaio-dev libusb-1.0-0-dev libxml2-dev rpm tar bzip2 gzip flex bison git libzstd-dev +git clone -b $LIBIIO_BRANCH --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git +cd libiio +cmake . -DHAVE_DNS_SD=OFF +make +sudo make install +cd .. +rm -rf libiio \ No newline at end of file diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 7520bf1..48091fc 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -15,6 +15,8 @@ jobs: - name: Install dependencies run: | + chmod +x .github/scripts/install_libiio.sh + ./.github/scripts/install_libiio.sh pip install -r requirements_dev.txt pip install -r doc/requirements.txt @@ -35,6 +37,8 @@ jobs: - name: Install dependencies run: | + chmod +x .github/scripts/install_libiio.sh + ./.github/scripts/install_libiio.sh pip install -r requirements_dev.txt pip install -r doc/requirements.txt @@ -72,6 +76,8 @@ jobs: - name: Install dependencies run: | + chmod +x .github/scripts/install_libiio.sh + ./.github/scripts/install_libiio.sh pip install -r requirements_dev.txt pip install -r doc/requirements.txt @@ -101,6 +107,8 @@ jobs: - name: Install dependencies run: | + chmod +x .github/scripts/install_libiio.sh + ./.github/scripts/install_libiio.sh pip install -r requirements_dev.txt pip install -r doc/requirements.txt @@ -138,6 +146,8 @@ jobs: - name: Install dependencies run: | + chmod +x .github/scripts/install_libiio.sh + ./.github/scripts/install_libiio.sh pip install -r requirements_dev.txt pip install -r doc/requirements.txt pip install setuptools wheel twine build diff --git a/requirements_dev.txt b/requirements_dev.txt index 60786e2..6d86a1a 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -15,3 +15,4 @@ plotly-express pyvisa matplotlib pytoml +pylibiio>=0.23.1