Skip to content

Commit

Permalink
Add libiio install to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Sep 23, 2024
1 parent 1be4ac1 commit f69737f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/scripts/install_libiio.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ plotly-express
pyvisa
matplotlib
pytoml
pylibiio>=0.23.1

0 comments on commit f69737f

Please sign in to comment.