-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build libiio from sources using libiio-v0
- build from sources on Linux and Darwwin - upgrade Python bindings to use version 3.11 Signed-off-by: Adrian Stanea <[email protected]>
- Loading branch information
1 parent
b37eabb
commit 7545593
Showing
4 changed files
with
68 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,44 @@ | ||
#!/bin/sh -e | ||
|
||
TOP_DIR=$(pwd) | ||
LIBIIO_VERSION=libiio-v0 | ||
|
||
. CI/travis/lib.sh | ||
|
||
# Note: not installing 'mono', it comes with Azure images, | ||
# but it doesn't look it's installed with Homebrew | ||
|
||
brew_install_if_not_exists cmake doxygen libusb libxml2 swig curl python | ||
# libiio deps | ||
brew_install_if_not_exists doxygen libusb libxml2 ncurses cdk libserialport sphinx-doc pkg-config | ||
pip3 install sphinx | ||
|
||
# if [ -n "$PACKAGE_TO_INSTALL" ] ; then | ||
# for file in $PACKAGE_TO_INSTALL ; do | ||
# sudo installer -pkg "${file}" -target / | ||
# done | ||
# elif [ "$INSTALL_FROM_SW_DOWNLOADS" = "1" ] ; then | ||
# wget http://swdownloads.analog.com/cse/travis_builds/${LIBIIO_BRANCH}_latest_libiio${LDIST}.pkg | ||
# sudo installer -pkg ${LIBIIO_BRANCH}_latest_libiio${LDIST}.pkg -target / | ||
# fi | ||
|
||
if [ -n "$PACKAGE_TO_INSTALL" ] ; then | ||
for file in $PACKAGE_TO_INSTALL ; do | ||
sudo installer -pkg "${file}" -target / | ||
done | ||
elif [ "$INSTALL_FROM_SW_DOWNLOADS" = "1" ] ; then | ||
wget http://swdownloads.analog.com/cse/travis_builds/${LIBIIO_BRANCH}_latest_libiio${LDIST}.pkg | ||
sudo installer -pkg ${LIBIIO_BRANCH}_latest_libiio${LDIST}.pkg -target / | ||
fi | ||
pip3 install wheel twine build virtualenv | ||
|
||
# Install glog | ||
echo "Building 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 .. | ||
make | ||
sudo make install | ||
|
||
pip3 install wheel twine build virtualenv | ||
# 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 ../ | ||
make | ||
sudo make install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters