Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging/update ci #448

Merged
merged 3 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions CI/azure/build_osc_arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash

set -xe

install_apt_pkgs() {
export APT_PKGS="libglib2.0-dev \
libgtk-3-dev \
libmatio-dev \
libfftw3-dev \
libxml2 \
libxml2-dev\
bison \
flex \
libavahi-common-dev \
libavahi-client-dev \
libcurl4-openssl-dev \
libjansson-dev \
cmake \
libaio-dev \
libserialport-dev \
libcdk5-dev \
libusb-1.0-0-dev \
autotools-dev \
autoconf \
"
apt-get install -y $APT_PKGS
git config --global --add safe.directory /ci
}

install_gtkdatabox() {
wget https://downloads.sourceforge.net/project/gtkdatabox/gtkdatabox-1/gtkdatabox-1.0.0.tar.gz --no-check-certificate
tar xvf gtkdatabox-1.0.0.tar.gz
cd gtkdatabox-1.0.0
./configure
sudo make install
}

install_adi_debs() {
dpkg -i ./download/*.deb
}

build_osc() {
mkdir build && cd build
cmake ../
make -j9
}

$@
52 changes: 52 additions & 0 deletions CI/azure/build_osc_darwin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/bash

set -xe

install_deps() {
export APT_PKGS="cmake \
gcc \
fftw \
libmatio \
libxml2 \
pkg-config \
libusb \
gtk+3 \
gtkdatabox \
jansson \
glib \
curl \
[email protected] \
gettext \
libserialport \
python
"

__brew_install_if_not_exists() {
brew ls --versions "$1" || \
brew install "$1"
}

brew_install_if_not_exists() {
while [ -n "$1" ] ; do
__brew_install_if_not_exists "$1" || return 1
shift
done
}

brew_install_if_not_exists $APT_PKGS
brew cleanup
}

install_adi_pkgs() {
sudo installer -pkg ./download/libad9166-*.pkg -target /
sudo installer -pkg ./download/libad9361-*.pkg -target /
sudo installer -pkg ./download/libiio-*.pkg -target /
}

build_osc() {
mkdir -p build && cd build
cmake -DCMAKE_C_COMPILER="/usr/bin/gcc" ../
make -j9
}

$@
48 changes: 48 additions & 0 deletions CI/azure/build_osc_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash

set -xe

install_apt_pkgs() {
export APT_PKGS="libglib2.0-dev \
libgtk-3-dev \
libmatio-dev \
libfftw3-dev \
libxml2 \
libxml2-dev\
bison \
flex \
libavahi-common-dev \
libavahi-client-dev \
libcurl4-openssl-dev \
libjansson-dev \
cmake \
libaio-dev \
libserialport-dev \
libcdk5-dev \
libusb-1.0-0-dev \
autotools-dev \
autoconf
"
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y $APT_PKGS
}

install_gtkdatabox() {
wget https://downloads.sourceforge.net/project/gtkdatabox/gtkdatabox-1/gtkdatabox-1.0.0.tar.gz
tar xvf gtkdatabox-1.0.0.tar.gz
cd gtkdatabox-1.0.0
./configure
sudo make install
}

install_adi_debs() {
sudo dpkg -i ./download/*.deb
}

build_osc() {
mkdir build && cd build
cmake ../
make -j9
}

$@
16 changes: 16 additions & 0 deletions CI/azure/ci-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -x
uname -a

echo "Current location is:" | pwd
ls -al

mkdir -p build
cd build
cmake ..

echo "Current location is:" | pwd
ls -al

make
Loading