Add Alliance build to regression tests.

This commit is contained in:
Jean-Paul Chaput 2023-08-04 16:45:46 +02:00
parent 826bc0dd2e
commit f3bab0a666
2 changed files with 28 additions and 4 deletions

View File

@ -24,6 +24,10 @@ jobs:
run: >
sudo apt-get install libboost-all-dev rapidjson-dev \
qtbase5-dev qtbase5-dev-tools libqt5svg5-dev libqwt-qt5-dev \
libeigen3-dev liblemon-dev
libeigen3-dev liblemon-dev \
autotools-dev automake \
libxt-dev libxpm-dev libmotif-dev
- name: Build Alliance
run: ${{ github.workspace }}/coriolis-2.x/src/coriolis/bootstrap/allianceInstaller.sh --github-runner=${{ github.workspace }}
- name: Build Coriolis
run: ${{ github.workspace }}/coriolis-2.x/src/coriolis/bootstrap/ccb.py --root=${{ github.workspace }}/coriolis-2.x --project=coriolis --make="-j4 install"

View File

@ -17,10 +17,30 @@
if [[ "`pwd`" =~ /nightly/ ]]; then
nightly="/nightly"
fi
root="${HOME}${nightly}"
srcDir=${HOME}${nightly}/coriolis-2.x/src/alliance/alliance/src
commonRoot=${HOME}${nightly}/coriolis-2.x/${arch}/Release.Shared
#commonRoot=${HOME}${nightly}/coriolis-2.x/${arch}/Debug.Shared
getString ()
{
string=`echo $1 | cut -d '=' -f 2-`
echo $string
}
while [ $# -gt 0 ]; do
case $1 in
--github-runner=*) echo "Using Github/runner profile.";
onGithub="true"
root=`getString $1`;;
esac
done
if [ "${onGithub}" = "true" ]; then
arch="Linux.x86_64"
fi
srcDir=${root}/coriolis-2.x/src/alliance/alliance/src
commonRoot=${root}/coriolis-2.x/${arch}/Release.Shared
#commonRoot=${root}/coriolis-2.x/${arch}/Debug.Shared
buildDir=${commonRoot}/build
installDir=${commonRoot}/install