Skip to content

Commit

Permalink
Create derivative build for libiio v1
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 6, 2023
1 parent 876b94b commit 1aca669
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/scripts/install_libiio.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/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
git clone -b 'main' --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git
git clone -b $LIBIIO_BRANCH --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git
cd libiio
cmake . -DHAVE_DNS_SD=OFF
make
Expand All @@ -11,7 +18,7 @@ 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
git clone -b $LIBIIO_BRANCH --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git
cd libiio
cmake . -DHAVE_DNS_SD=OFF -DPYTHON_BINDINGS=ON
make
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
libiio: ['main', 'v0.25']

steps:
- uses: actions/checkout@v2
Expand All @@ -18,6 +19,7 @@ jobs:

- name: Install dependencies
run: |
export LIBIIO_BRANCH=${{ matrix.libiio }}
bash ./.github/scripts/install_libiio.sh
bash ./.github/scripts/install_pydeps.sh
bash ./.github/scripts/install_part_libs.sh
Expand All @@ -31,6 +33,7 @@ jobs:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
libiio: ['main', 'v0.25']

steps:
- uses: actions/checkout@v2
Expand All @@ -41,6 +44,7 @@ jobs:

- name: Install dependencies
run: |
export LIBIIO_BRANCH=${{ matrix.libiio }}
bash ./.github/scripts/install_libiio.sh
bash ./.github/scripts/install_part_libs.sh
bash ./.github/scripts/install_iioemu.sh
Expand Down

0 comments on commit 1aca669

Please sign in to comment.