Skip to content

Commit

Permalink
Update CI to use libiio-v1. Disable Windows conda builds for now
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Nov 28, 2023
1 parent 9496ca6 commit 66b9723
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
15 changes: 14 additions & 1 deletion .github/scripts/install_libiio.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
#!/bin/bash
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
git clone -b 'v0.25' --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git
git clone -b 'main' --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

# Python pieces
sudo apt-get install -y python3-pip python3-setuptools
git clone -b 'main' --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git
cd libiio
cmake . -DHAVE_DNS_SD=OFF -DPYTHON_BINDINGS=ON
make
cd bindings/python
pip install .
cd ../..
cd ..
rm -rf libiio
8 changes: 5 additions & 3 deletions .github/scripts/install_part_libs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash
exit 0

git clone -b 'master' --single-branch --depth 1 https://github.com/analogdevicesinc/libad9361-iio.git
cd libad9361-iio
cmake -DPYTHON_BINDINGS=ON .
cmake -DPYTHON_BINDINGS=ON -DLIBIIO_INCLUDEDIR=/usr/include/iio .
make
cd bindings/python
pip install .
Expand All @@ -13,7 +15,7 @@ rm -rf libad9361-iio

git clone -b 'master' --single-branch --depth 1 https://github.com/analogdevicesinc/libad9166-iio.git
cd libad9166-iio
cmake -DPYTHON_BINDINGS=ON .
cmake -DPYTHON_BINDINGS=ON -DLIBIIO_INCLUDEDIR=/usr/include/iio .
make
cd bindings/python
pip install .
Expand All @@ -23,4 +25,4 @@ sudo ldconfig
cd ..
rm -rf libad9166-iio

pip install pylibiio==0.23.1
# pip install pylibiio==0.23.1
2 changes: 1 addition & 1 deletion .github/scripts/install_pydeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
sudo apt-get install -y python3-pip python3-setuptools
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install pylibiio
# pip install pylibiio
3 changes: 2 additions & 1 deletion .github/workflows/win-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Windows Tests

on: [push, pull_request]
# on: [push, pull_request]
on: [pull_request]

jobs:
CondaBased:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy>=1.20
pylibiio==0.23.1
pylibiio>=1.0
paramiko

0 comments on commit 66b9723

Please sign in to comment.